[network-manager-applet/th/bgo739246_clang] build: update m4/compiler_warnings.m4



commit 219aa07dc2e03735a024d558c39855de126e0699
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>

 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]