[network-manager-applet/nma-0-9-10: 12/15] build: update m4/compiler_warnings.m4
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/nma-0-9-10: 12/15] build: update m4/compiler_warnings.m4
- Date: Fri, 31 Oct 2014 20:19:47 +0000 (UTC)
commit a6bfa1b87c962a0db2e4a0fc00ff508570d1c7e0
Author: Thomas Haller <thaller redhat com>
Date: Mon Oct 27 19:40:21 2014 +0100
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)
m4/compiler_warnings.m4 | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4
index 2c68df5..578dc59 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])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]