From 50f4b91343cada1b96a548abfcf09d08bbef2141 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 27 Oct 2014 19:40:21 +0100 Subject: 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 --- m4/compiler_warnings.m4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'm4') 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]) -- cgit v1.2.1