summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-10-27 19:40:21 +0100
committerThomas Haller <thaller@redhat.com>2014-10-31 21:11:23 +0100
commita6bfa1b87c962a0db2e4a0fc00ff508570d1c7e0 (patch)
tree8e4a8f948154abde7025a3de5a0b799d62e46570
parentd0c847c52f8df7e7d01d12a51477cbd5112615c5 (diff)
downloadnetwork-manager-applet-a6bfa1b87c962a0db2e4a0fc00ff508570d1c7e0.tar.gz
build: update m4/compiler_warnings.m4
Update m4 macro from current NetworkManager master branch; with one difference: keep also -Wstrict-prototypes (which NM does not enable). Signed-off-by: Thomas Haller <thaller@redhat.com> (cherry picked from commit 50f4b91343cada1b96a548abfcf09d08bbef2141)
-rw-r--r--m4/compiler_warnings.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4
index 2c68df55..578dc595 100644
--- a/m4/compiler_warnings.m4
+++ b/m4/compiler_warnings.m4
@@ -25,9 +25,13 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
unset SAVE_CFLAGS
for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
- -Wdeclaration-after-statement -Wstrict-prototypes \
+ -Wdeclaration-after-statement -Wformat-security \
+ -Wstrict-prototypes \
-Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
- -fno-strict-aliasing -Wno-unused-but-set-variable; do
+ -fno-strict-aliasing -Wno-unused-but-set-variable \
+ -Wundef -Wimplicit-function-declaration \
+ -Wpointer-arith -Winit-self \
+ -Wmissing-include-dirs -Waggregate-return; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $EXTRA_CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])