[gobject-introspection/warn-flags] build: enable -Wimplicit-fallthrough



commit 0630c29f7b60895fb12ea96f0dc160724268b6fe
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sun Jul 29 16:36:31 2018 +0200

    build: enable -Wimplicit-fallthrough
    
    and fix a missplaced break

 configure.ac             | 2 +-
 girepository/girparser.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1e2e4b53..ad782a64 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,7 +66,7 @@ AX_COMPILER_FLAGS(,, [yes])
 AX_APPEND_COMPILE_FLAGS([-Wno-switch-enum])
 # FIXME: Fix the warnings and remove the flags
 AX_APPEND_COMPILE_FLAGS([-Wno-redundant-decls -Wno-switch-default -Wno-deprecated-declarations 
-Wno-type-limits])
-AX_APPEND_COMPILE_FLAGS([-Wno-duplicated-branches -Wno-implicit-fallthrough])
+AX_APPEND_COMPILE_FLAGS([-Wno-duplicated-branches])
 
 WARN_CFLAGS_PYTHON="$WARN_CFLAGS"
 AX_APPEND_COMPILE_FLAGS([-Wno-discarded-qualifiers], [WARN_CFLAGS_PYTHON])
diff --git a/girepository/girparser.c b/girepository/girparser.c
index dfc75c96..893a9a4e 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -3479,8 +3479,8 @@ end_element_handler (GMarkupParseContext *context,
          (strcmp ("varargs", element_name) == 0))
        {
          end_type (ctx);
-         break;
        }
+      break;
     case STATE_ATTRIBUTE:
       if (strcmp ("attribute", element_name) == 0)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]