From edc8a6492eec6d2f7237cd8a64f3c30817506132 Mon Sep 17 00:00:00 2001 From: Mattias Bengtsson Date: Thu, 17 Aug 2017 22:14:51 +0200 Subject: [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=. --- platform/glfw/main.cpp | 3 --- 1 file changed, 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; -- cgit v1.2.1