From 07a787dc874b33dc5157041c18b96a647f1d01cd Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 3 Jul 2018 10:32:24 +0200 Subject: [PATCH] Remove -Wswitch-enum from compile flags * configure.ac (POTENTIAL_GCC_CFLAGS): Remove -Wswitch-enum, which requires that switch statements mention all enumerated values, even if there is a default clause. Note that -Wall enables -Wswitch, which is the same except it's silent if there's a default clause. The reason is that lightning has a number of switches like this. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 72686e710..7a63e4076 100644 --- a/configure.ac +++ b/configure.ac @@ -1308,7 +1308,7 @@ case "$GCC" in POTENTIAL_GCC_CFLAGS="-Wall -Wmissing-prototypes \ -Wdeclaration-after-statement -Wpointer-arith \ - -Wswitch-enum -fno-strict-aliasing -fwrapv" + -fno-strict-aliasing -fwrapv" # Do this here so we don't screw up any of the tests above that might # not be "warning free" if test "${GUILE_ERROR_ON_WARNING}" = yes