diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 17:13:16 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 18:57:03 +0200 |
commit | 9535fc481f28fa661fa9d48b932e089aa3504bc3 (patch) | |
tree | 1fe0475b815e59ac637d284ffdb70d34c38550b9 /girepository/gicallableinfo.c | |
parent | e552057558ac4c02b9bba922ee2f06d2f9b0d57d (diff) | |
download | gobject-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/gicallableinfo.c')
-rw-r--r-- | girepository/gicallableinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/girepository/gicallableinfo.c b/girepository/gicallableinfo.c index 5f923d1a..e9a426e1 100644 --- a/girepository/gicallableinfo.c +++ b/girepository/gicallableinfo.c @@ -77,6 +77,8 @@ signature_offset (GICallableInfo *info) case GI_INFO_TYPE_SIGNAL: sigoff = G_STRUCT_OFFSET (SignalBlob, signature); break; + default: + g_assert_not_reached (); } if (sigoff >= 0) return *(guint32 *)&rinfo->typelib->data[rinfo->offset + sigoff]; |