diff options
author | Allan McRae <allan@archlinux.org> | 2019-02-12 02:17:30 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-02-12 02:29:13 +0100 |
commit | 86004227d14bef059f71290b3c0454ad88ea0f86 (patch) | |
tree | 6876053a8632521131d72b9654994b68973aa491 /configure.ac | |
parent | db102c67efe9cfd4367a9110c8f97ceff5afcbe3 (diff) | |
download | pacman-86004227d14bef059f71290b3c0454ad88ea0f86.tar.gz pacman-86004227d14bef059f71290b3c0454ad88ea0f86.tar.xz |
Add implicit fall through warning
Requires modification to our comment about fall through to match compilers
expectations. Works for GCC and Clang.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 415ed3cb..2f345b5d 100644 --- a/configure.ac +++ b/configure.ac @@ -462,6 +462,7 @@ if test "x$warningflags" = "xyes" ; then CFLAGS_ADD([-Wformat-nonliteral], [WARNING_CFLAGS]) CFLAGS_ADD([-Wformat-security], [WARNING_CFLAGS]) CFLAGS_ADD([-Wignored-qualifiers], [WARNING_CFLAGS]) + CFLAGS_ADD([-Wimplicit-fallthrough], [WARNING_CFLAGS]) CFLAGS_ADD([-Winit-self], [WARNING_CFLAGS]) CFLAGS_ADD([-Wlogical-op], [WARNING_CFLAGS]) CFLAGS_ADD([-Wmissing-declarations], [WARNING_CFLAGS]) |