summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-07-29 16:36:31 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-07-29 18:57:03 +0200
commitfaa39ef9c9a2452df5caedecf1452ec262b2816b (patch)
treebd5176df221eee11d989358f922fb005bddc82ab
parent5e61825e2ed0412f49c21ba2f24893a8d305ec4b (diff)
downloadgobject-introspection-faa39ef9c9a2452df5caedecf1452ec262b2816b.tar.gz
build: enable -Wimplicit-fallthrough
and fix a missplaced break
-rw-r--r--configure.ac1
-rw-r--r--girepository/girparser.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 759f1bc0..a8482ca6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,7 +66,6 @@ AX_COMPILER_FLAGS(,, [yes])
AX_APPEND_COMPILE_FLAGS([-Wno-duplicated-branches -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-implicit-fallthrough])
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)
{