[Top][All Lists]
[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
- [Findutils-patches] [PATCH 1/9] File system type names should be untranslated strings., James Youngman, 2011/07/09
- [Findutils-patches] [PATCH 9/9] Disable the noisy but not useful -Wswitch-default warning.,
James Youngman <=
- [Findutils-patches] [PATCH 4/9] Annotate strings as needing translation or not as appropriate., James Youngman, 2011/07/09
- [Findutils-patches] [PATCH 3/9] Indicate predicates and debug strings don't need translation., James Youngman, 2011/07/09
- [Findutils-patches] [PATCH 5/9] Translate error messages, mark other strings as not needing it., James Youngman, 2011/07/09
- [Findutils-patches] [PATCH 6/9] Mark strings in ftsfind.c as not needing translation., James Youngman, 2011/07/09
- [Findutils-patches] [PATCH 2/9] Predicate names and trivial formats don't need translation., James Youngman, 2011/07/09
- [Findutils-patches] [PATCH 7/9] Mark strings in find.c as not needing translation., James Youngman, 2011/07/09
- [Findutils-patches] [PATCH 8/9] Fix a number of compiler warnings (mostly const-correctness)., James Youngman, 2011/07/09