[gnome-terminal] build: Add some more compiler warnings



commit 475872b496340ddda72f4c372c6be39039a0a55f
Author: Christian Persch <chpe gnome org>
Date:   Sun Jan 20 14:48:31 2013 +0100

    build: Add some more compiler warnings

 configure.ac |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e0fa35d..ab81bc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -188,22 +188,29 @@ AM_CONDITIONAL([WITH_NAUTILUS_EXTENSION],[test "$with_nautilus_extension" = "yes
 # ***********
 
 CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
+  -pipe \
   -Waggregate-return \
   -Wall \
   -Wcast-align \
+  -Wendif-labels \
   -Werror=declaration-after-statement \
-  -Werror=format-security \
   -Werror=format=2 \
+  -Werror=format-nonliteral \
+  -Werror=format-security \
   -Werror=implicit-function-declaration \
   -Werror=init-self \
   -Werror=missing-include-dirs \
   -Werror=missing-prototypes \
   -Werror=pointer-arith \
   -Wextra \
+  -Wfloat-equal \
   -Wformat-nonliteral \
   -Wimplicit \
+  -Wlogical-op \
   -Wmissing-declarations \
+  -Wmissing-include-dirs \
   -Wmissing-format-attribute \
+  -Wmissing-noreturn \
   -Wnested-externs \
   -Wno-missing-field-initializers \
   -Wno-switch-enum \
@@ -214,10 +221,15 @@ CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
   -Wsign-compare \
   -Wstrict-aliasing=2 \
   -Wstrict-prototypes \
+  -Wundef \
   -Wuninitialized \
   -Wunsafe-loop-optimizations \
   -Wwrite-strings \
   -fno-common \
+  -fdiagnostics-show-option \
+  -fno-strict-aliasing \
+  -fvisibility=hidden \
+  -fstack-protector \
 ])
 
 # *************



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