* configure.ac: Exclude the -Wswitch-default warning, since the
useful cases are already diagnosed by -Wswitch or -Wswitch-enum.
---
 ChangeLog    |    4 ++++
 configure.ac |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6278f0c..c05331e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-07-09  James Youngman  <j...@gnu.org>
 
+       Disable the noisy but not useful -Wswitch-default warning.
+       * configure.ac: Exclude the -Wswitch-default warning, since the
+       useful cases are already diagnosed by -Wswitch or -Wswitch-enum.
+
        Fix a number of compiler warnings (mostly const-correctness).
        * find/find.c (get_current_dirfd): remove unused function.
        (process_dir): make parameters const: parent, pathname, name.
diff --git a/configure.ac b/configure.ac
index 5ed3e91..3e19440 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,6 +98,7 @@ nw="$nw -Wtraditional"          # All compilers nowadays 
support ANSI C
 nw="$nw -Wconversion"           # These warnings usually don't point to 
mistakes.
 nw="$nw -Wsign-conversion"      # Likewise.
 nw="$nw -Wc++-compat"           # malloc returns void* and a cast would be 
ugly.
+nw="$nw -Wswitch-default"       # Useful cases are covered by -Wswitch and 
-Wswitch-enum.
 # Warnings we might enable in the future, but not yet (because they generate a
 # lot of noise).
 marginal=""
-- 
1.7.2.5


_______________________________________________
Findutils-patches mailing list
Findutils-patches@gnu.org
https://lists.gnu.org/mailman/listinfo/findutils-patches

Reply via email to