manywarnings: More warnings.
authorSimon Josefsson <simon@josefsson.org>
Sun, 20 Nov 2011 22:08:31 +0000 (23:08 +0100)
committerSimon Josefsson <simon@josefsson.org>
Sun, 20 Nov 2011 22:08:31 +0000 (23:08 +0100)
* m4/manywarnings.m4: Add more warnings from gcc 4.6.2.

ChangeLog
m4/manywarnings.m4

index e447786..8173a2e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-20  Simon Josefsson  <simon@josefsson.org>
+
+       * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
+
 2011-11-20  Bruno Haible  <bruno@clisp.org>
 
        fma tests: Avoid shadowing local variables.
index 67db064..6e78c07 100644 (file)
@@ -148,6 +148,33 @@ AC_DEFUN([gl_MANYWARN_ALL_GCC],
     ; do
     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
   done
+  # More warnings from gcc 4.6.2 --help=warnings.
+  for gl_manywarn_item in \
+    -Wabi \
+    -Wcpp \
+    -Wdeprecated \
+    -Wdeprecated-declarations \
+    -Wdiv-by-zero \
+    -Wdouble-promotion \
+    -Wendif-labels \
+    -Wextra \
+    -Wformat-contains-nul \
+    -Wformat-extra-args \
+    -Wformat-zero-length \
+    -Wformat=2 \
+    -Wmultichar \
+    -Wnormalized=nfc \
+    -Woverflow \
+    -Wpointer-to-int-cast \
+    -Wpragmas \
+    -Wsuggest-attribute=const \
+    -Wsuggest-attribute=noreturn \
+    -Wsuggest-attribute=pure \
+    -Wtrampolines \
+    -Wunsuffixed-float-constants \
+    ; do
+    gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
+  done
 
   # Disable the missing-field-initializers warning if needed
   if test "$gl_cv_cc_nomfi_needed" = yes; then