summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--doc/manywarnings.texi8
2 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index a0c19fed68..cf72e260e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-03-07 Paul Eggert <eggert@cs.ucla.edu>
+
+ manywarnings: modernize documentation
+ Problem reported by Reuben Thomas in:
+ https://lists.gnu.org/r/bug-gnulib/2021-03/msg00046.html
+ * doc/manywarnings.texi (manywarnings): Update in
+ the light of recent changes to the manywarnings module.
+
2021-03-07 Bruno Haible <bruno@clisp.org>
sysexits: Fix for Haiku.
diff --git a/doc/manywarnings.texi b/doc/manywarnings.texi
index cb2cf295ef..1b3e5907be 100644
--- a/doc/manywarnings.texi
+++ b/doc/manywarnings.texi
@@ -12,11 +12,9 @@ An example use of the module is as follows:
gl_MANYWARN_ALL_GCC([warnings])
# Set up the list of the pointless, undesired warnings.
nw=
-nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
-nw="$nw -Wundef" # All compiler preprocessors support #if UNDEF
-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 -Winline" # It's OK to not inline.
+nw="$nw -Wstrict-overflow" # It's OK to optimize strictly.
+nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings.
# Enable all GCC warnings not in this list.
gl_MANYWARN_COMPLEMENT([warnings], [$warnings], [$nw])
for w in $warnings; do