[libsoup/wip/fixes: 1/2] Use AX_APPEND_COMPILE_FLAGS to set the flags



commit 85a8114fe82f182e0971e8f1689db41d75eac310
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Aug 31 17:29:16 2015 +0200

    Use AX_APPEND_COMPILE_FLAGS to set the flags

 configure.ac |   44 +++++++++++++++++++++++++++++++++++++-------
 1 files changed, 37 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b78c830..c4c1e46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -329,13 +329,43 @@ AC_ARG_ENABLE(more-warnings,
              set_more_warnings=no)
 
 if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
-       CFLAGS="$CFLAGS \
-               -Wall -Wstrict-prototypes -Werror=missing-prototypes \
-               -Werror=implicit-function-declaration \
-               -Werror=pointer-arith -Werror=init-self -Werror=format=2 \
-               -Wno-format-zero-length \
-               -Werror=missing-include-dirs -Werror=aggregate-return \
-               -Werror=declaration-after-statement"
+       # Compiler options
+       AX_APPEND_COMPILE_FLAGS([ \
+           -Wall \
+           -Wcast-align \
+           -Wdeclaration-after-statement \
+           -Wempty-body \
+           -Werror=format-security \
+           -Werror=format=2 \
+           -Werror=aggregate-return \
+           -Werror=pointer-arith \
+           -Werror=implicit-function-declaration \
+           -Werror=missing-prototypes \
+           -Wextra \
+           -Wformat \
+           -Wformat-nonliteral \
+           -Wformat-security \
+           -Winit-self \
+           -Wmisleading-indentation \
+           -Wmissing-include-dirs \
+           -Wshift-negative-value \
+           -Wnested-externs \
+           -Wno-missing-field-initializers \
+           -Wno-sign-compare \
+           -Wno-strict-aliasing \
+           -Wno-uninitialized \
+           -Wno-unused-parameter \
+           -Wpointer-arith \
+           -Wredundant-decls \
+           -Wreturn-type \
+           -Wshadow \
+           -Wswitch-default \
+           -Wswitch-enum \
+           -Wundef \
+           -Wuninitialized \
+           -Wno-format-zero-length \
+           -Wstrict-prototypes \
+       ])
 fi
 
 dnl *************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]