From a0202040e2b99117e6307e886fd08401330d20f8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Sep 2006 22:49:30 +0000 Subject: r18051: - add gcc warning flags - fix piles of warnings and ftruncate bug in libreplace testsuite (This used to be commit f5fc88f0c4c752a2773d5280ed4d94818e2d4744) --- source4/lib/replace/configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/lib/replace/configure.ac') diff --git a/source4/lib/replace/configure.ac b/source4/lib/replace/configure.ac index a05a9cbfe7..3d56c8d934 100644 --- a/source4/lib/replace/configure.ac +++ b/source4/lib/replace/configure.ac @@ -46,6 +46,12 @@ AC_INIT(dlfcn.c) AC_CONFIG_SRCDIR([dlfcn.c]) AC_CONFIG_HEADER(replace_config.h) AC_PROG_INSTALL +AC_PROG_CC + +if test "$ac_cv_prog_gcc" = yes; then + CFLAGS="$CFLAGS -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings" +fi + sinclude(config.m4) sinclude(win32/config.m4) sinclude(repdir/config.m4) -- cgit