summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Bengtsson <mattias.jc.bengtsson@gmail.com>2017-08-17 22:14:51 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-08-18 17:04:34 +0300
commitedc8a6492eec6d2f7237cd8a64f3c30817506132 (patch)
treeb790a702ef757660e8f9d61f3556c714de2fa9eb
parent385e4e6ade58dbc51efde7d18843163c047337de (diff)
downloadqtlocation-mapboxgl-edc8a6492eec6d2f7237cd8a64f3c30817506132.tar.gz
[glfw] Getopt: Don't handle 0 value
Since we don't have any options with non-null flags we don't need to handle the case where getopt_long returns 0. The case that handled 0 was susceptible to switch fall-through and made the code not compile with -Werror=implicit-fallthrough=.
-rw-r--r--platform/glfw/main.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/platform/glfw/main.cpp b/platform/glfw/main.cpp
index 6418ddcf78..3702b8aaab 100644
--- a/platform/glfw/main.cpp
+++ b/platform/glfw/main.cpp
@@ -59,9 +59,6 @@ int main(int argc, char *argv[]) {
if (opt == -1) break;
switch (opt)
{
- case 0:
- if (long_options[option_index].flag != nullptr)
- break;
case 'f':
fullscreen = true;
break;