summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-06-23 10:41:35 +0100
committerSimon McVittie <smcv@collabora.com>2021-06-23 19:01:51 +0100
commit42a49e6e0595076f3841ace23e05c6289f0a4fb7 (patch)
tree553e922d0397df5da8dd98800aebc7b8416ed7d9
parentb6ee19a03de2630f0b60cf2be3f1e618522d8483 (diff)
downloadbubblewrap-42a49e6e0595076f3841ace23e05c6289f0a4fb7.tar.gz
build: Warn if a switch over an enum does not handle all values
This is a useful way to catch possibilities being unhandled. 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 ada3f05..3e761a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -107,6 +107,7 @@ CC_CHECK_FLAGS_APPEND([WARN_CFLAGS], [CFLAGS], [\
-Werror=misleading-indentation \
-Werror=missing-include-dirs -Werror=aggregate-return \
-Werror=switch-default \
+ -Wswitch-enum \
])
AC_SUBST(WARN_CFLAGS)