summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-10-27 19:40:21 +0100
committerThomas Haller <thaller@redhat.com>2014-10-29 10:01:46 +0100
commit50f4b91343cada1b96a548abfcf09d08bbef2141 (patch)
tree8f64c029ad2e5a246ee94bfa28e735dcaadd0efa /m4
parente6ed12c032a2af647a53fb85351dacb8c22f54f3 (diff)
downloadnetwork-manager-applet-50f4b91343cada1b96a548abfcf09d08bbef2141.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>
Diffstat (limited to 'm4')
-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])