summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-06-23 10:40:34 +0100
committerSimon McVittie <smcv@collabora.com>2021-06-23 18:36:18 +0100
commitf1aa13554e6e79f608423527c025fdd93522c570 (patch)
treeb10022785c1300eab0806b7a65d3cb93fe78bd2c
parente1c0e78558f8fa0e7c1a1e10af5a0fdd310a4c14 (diff)
downloadbubblewrap-f1aa13554e6e79f608423527c025fdd93522c570.tar.gz
build: Error if a switch lacks a default case
This is a useful way to detect bugs before they happen. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6167ea4..ada3f05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -106,6 +106,7 @@ CC_CHECK_FLAGS_APPEND([WARN_CFLAGS], [CFLAGS], [\
-Werror=incompatible-pointer-types \
-Werror=misleading-indentation \
-Werror=missing-include-dirs -Werror=aggregate-return \
+ -Werror=switch-default \
])
AC_SUBST(WARN_CFLAGS)