summaryrefslogtreecommitdiff
path: root/girepository/giconstantinfo.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/giconstantinfo.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/giconstantinfo.c')
-rw-r--r--girepository/giconstantinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/girepository/giconstantinfo.c b/girepository/giconstantinfo.c
index 60715a4b..d44646ee 100644
--- a/girepository/giconstantinfo.c
+++ b/girepository/giconstantinfo.c
@@ -166,6 +166,8 @@ g_constant_info_get_value (GIConstantInfo *info,
case GI_TYPE_TAG_DOUBLE:
DO_ALIGNED_COPY(&value->v_double, &rinfo->typelib->data[blob->offset], gdouble);
break;
+ default:
+ g_assert_not_reached ();
}
}
}