diff options
author | Simon McVittie <smcv@collabora.com> | 2021-06-23 10:40:34 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-06-23 18:36:18 +0100 |
commit | f1aa13554e6e79f608423527c025fdd93522c570 (patch) | |
tree | b10022785c1300eab0806b7a65d3cb93fe78bd2c | |
parent | e1c0e78558f8fa0e7c1a1e10af5a0fdd310a4c14 (diff) | |
download | bubblewrap-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.ac | 1 |
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) |