[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
manywarnings update
From: |
Simon Josefsson |
Subject: |
manywarnings update |
Date: |
Sun, 20 Nov 2011 23:24:46 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) |
I have pushed the patch below. For Libtasn1, the only new warning flag
I had to manually disable for that project was -Wsuggest-attribute=pure
because there were many hits and I didn't feel like adding many function
attributes. Unfortunately, several of the parameters aren't documented
in the manual so it is unclear whether they are implied by -Wall or not.
/Simon
>From 3e07d5d60bee7d0e6fc0d79e974ce5a8dc7dea61 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <address@hidden>
Date: Sun, 20 Nov 2011 23:08:31 +0100
Subject: [PATCH] manywarnings: More warnings.
* m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
---
ChangeLog | 4 ++++
m4/manywarnings.m4 | 27 +++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e447786..8173a2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-20 Simon Josefsson <address@hidden>
+
+ * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
+
2011-11-20 Bruno Haible <address@hidden>
fma tests: Avoid shadowing local variables.
diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4
index 67db064..6e78c07 100644
--- a/m4/manywarnings.m4
+++ b/m4/manywarnings.m4
@@ -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
--
1.7.2.5
- manywarnings update,
Simon Josefsson <=