[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/05: Remove -Wswitch-enum from compile flags
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/05: Remove -Wswitch-enum from compile flags |
Date: |
Tue, 3 Jul 2018 07:32:24 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 07a787dc874b33dc5157041c18b96a647f1d01cd
Author: Andy Wingo <address@hidden>
Date: Tue Jul 3 10:32:24 2018 +0200
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 72686e7..7a63e40 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