summary refs log tree commit diff
path: root/m4/compiler_options.m4
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2017-02-16 00:00:34 +0100
committerMichael Biebl <biebl@debian.org>2017-02-16 00:00:34 +0100
commita222e56e103f949b148a6942e385ccca2c26d9f3 (patch)
tree7978165f4d291224c854adb4c96c863a924b4882 /m4/compiler_options.m4
parent7f4dff3943c64e1d0e5d13b2ac915088dde165e6 (diff)
New upstream version 1.6.2 upstream/1.6.2
Diffstat (limited to 'm4/compiler_options.m4')
-rw-r--r--m4/compiler_options.m431
1 files changed, 23 insertions, 8 deletions
diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4
index 0023c36b..c998711d 100644
--- a/m4/compiler_options.m4
+++ b/m4/compiler_options.m4
@@ -61,16 +61,31 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
 		CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS -Werror"
 	fi
 
-	for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
-		      -Wdeclaration-after-statement -Wformat-security \
-		      -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
-		      -Wno-duplicate-decl-specifier \
+	for option in \
+		      -Wextra \
+		      -Wdeclaration-after-statement \
+		      -Wfloat-equal \
+		      -Wformat-nonliteral \
+		      -Wformat-security \
+		      -Wimplicit-fallthrough \
+		      -Wimplicit-function-declaration \
+		      -Winit-self \
+		      -Wmissing-declarations \
+		      -Wmissing-include-dirs \
+		      -Wmissing-prototypes \
+		      -Wpointer-arith \
+		      -Wshadow \
 		      -Wstrict-prototypes \
-		      -Wno-unused-but-set-variable \
+		      -Wundef \
+		      -Wno-duplicate-decl-specifier \
+		      -Wno-format-truncation \
 		      -Wno-format-y2k \
-		      -Wundef -Wimplicit-function-declaration \
-		      -Wpointer-arith -Winit-self -Wformat-nonliteral \
-		      -Wmissing-include-dirs -Wno-pragmas; do
+		      -Wno-missing-field-initializers \
+		      -Wno-pragmas \
+		      -Wno-sign-compare \
+		      -Wno-unused-but-set-variable \
+		      -Wno-unused-parameter \
+		      ; do
 		dnl GCC 4.4 does not warn when checking for -Wno-* flags (https://gcc.gnu.org/wiki/FAQ#wnowarning)
                 _NM_COMPILER_FLAG([$(printf '%s' "$option" | sed 's/^-Wno-/-W/')], [],
 		                  [CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS $option"], [])