]> Savannah Git Hosting - gnulib.git/commitdiff
manywarnings: modernize documentation
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Mar 2021 21:47:02 +0000 (13:47 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Mar 2021 21:47:02 +0000 (13:47 -0800)
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.

ChangeLog
doc/manywarnings.texi

index a0c19fed683335ac00e8daf4a0c382789c9dabfa..cf72e260e0e9df1006458e00e8261c58d00347b0 100644 (file)
--- 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.
index cb2cf295ef6db27eeb71ea20dcef41f5b47e1aa0..1b3e5907bec64b8cb62a2bf6870dff2ab7389b7f 100644 (file)
@@ -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