findutils-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Findutils-patches] [PATCH 9/9] Disable the noisy but not useful -Wswitc


From: James Youngman
Subject: [Findutils-patches] [PATCH 9/9] Disable the noisy but not useful -Wswitch-default warning.
Date: Sat, 9 Jul 2011 23:15:51 +0100

* 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  <address@hidden>
 
+       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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]