summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/talloc/Makefile.in4
-rw-r--r--source4/lib/talloc/configure.in3
2 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/talloc/Makefile.in b/source4/lib/talloc/Makefile.in
index a986d7766c..ec906f9453 100644
--- a/source4/lib/talloc/Makefile.in
+++ b/source4/lib/talloc/Makefile.in
@@ -1,5 +1,3 @@
-#OPT = -g -ftest-coverage -fprofile-arcs
-#LIBS = -lgcov
OPT = -O
prefix = @prefix@
exec_prefix = @exec_prefix@
@@ -9,7 +7,7 @@ mandir = @mandir@
XSLTPROC = @XSLTPROC@
INSTALLCMD=@INSTALL@
-CFLAGS = $(OPT) -Wall
+CFLAGS = $(OPT)
LIBOBJ = talloc.o
diff --git a/source4/lib/talloc/configure.in b/source4/lib/talloc/configure.in
index 05e6577ce8..2dfb66a17e 100644
--- a/source4/lib/talloc/configure.in
+++ b/source4/lib/talloc/configure.in
@@ -2,6 +2,9 @@ AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
AC_INIT(talloc.h)
AC_PROG_CC
+if test "x$GCC" = "xyes"; then
+ CFLAGS="$CFLAGS -Wall -W"
+fi
AC_PROG_INSTALL
AC_PATH_PROG(XSLTPROC,xsltproc)
AC_PATH_PROG(GCOV,gcov)