summaryrefslogtreecommitdiff
path: root/girepository/girparser.c
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-07-29 17:13:16 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-07-29 18:57:03 +0200
commit9535fc481f28fa661fa9d48b932e089aa3504bc3 (patch)
tree1fe0475b815e59ac637d284ffdb70d34c38550b9 /girepository/girparser.c
parente552057558ac4c02b9bba922ee2f06d2f9b0d57d (diff)
downloadgobject-introspection-9535fc481f28fa661fa9d48b932e089aa3504bc3.tar.gz
build: enable -Wswitch-default
In case the surrounding code handles missing cases break, otherwise add a g_assert_not_reached(). The generated parser code triggers this as well, so disable it there only.
Diffstat (limited to 'girepository/girparser.c')
-rw-r--r--girepository/girparser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index 893a9a4e..97e62a53 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -3092,6 +3092,8 @@ start_element_handler (GMarkupParseContext *context,
ctx, error))
goto out;
break;
+ default:
+ break;
}
if (*error == NULL && ctx->state != STATE_PASSTHROUGH)