summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 11:39:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:34 -0500
commitf6de92d47c669088299debfcc77dd571c97cf15c (patch)
tree3d117596a9f383e30b9e43e8f12e19097b065496
parent63d284c91220535456e036623f97ccd2cc44c000 (diff)
downloadsamba-f6de92d47c669088299debfcc77dd571c97cf15c.tar.gz
samba-f6de92d47c669088299debfcc77dd571c97cf15c.tar.bz2
samba-f6de92d47c669088299debfcc77dd571c97cf15c.zip
r18463: add some more warning flags, tested with gcc 2.95.3 on SuSE 7.3
metze (This used to be commit 553a90cbe200d2030e4caefe949b48d63abe382d)
-rw-r--r--source4/lib/replace/configure.ac12
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/lib/replace/configure.ac b/source4/lib/replace/configure.ac
index b506b791eb..cf1fe8defc 100644
--- a/source4/lib/replace/configure.ac
+++ b/source4/lib/replace/configure.ac
@@ -6,7 +6,17 @@ AC_CONFIG_HEADER(config.h)
m4_include(libreplace.m4)
if test "$ac_cv_prog_gcc" = yes; then
- CFLAGS="$CFLAGS -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings"
+ CFLAGS="$CFLAGS -Wall"
+ CFLAGS="$CFLAGS -W"
+ CFLAGS="$CFLAGS -Wshadow"
+ CFLAGS="$CFLAGS -Wstrict-prototypes"
+ CFLAGS="$CFLAGS -Wpointer-arith"
+ CFLAGS="$CFLAGS -Wcast-qual"
+ CFLAGS="$CFLAGS -Wcast-align"
+ CFLAGS="$CFLAGS -Wwrite-strings"
+ CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
+ CFLAGS="$CFLAGS -Wformat=2"
+ CFLAGS="$CFLAGS -Wno-format-y2k"
fi
AC_OUTPUT(Makefile)