summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-07 23:19:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:33 -0500
commit238f36b8995d959ffe5174054bf71228119ce802 (patch)
tree2ba46aa89aa322bfc326e621b3c1d48c60708885 /source4
parent3059fb2bc748a8ff1876d0f840a50b73139445f2 (diff)
downloadsamba-238f36b8995d959ffe5174054bf71228119ce802.tar.gz
samba-238f36b8995d959ffe5174054bf71228119ce802.tar.bz2
samba-238f36b8995d959ffe5174054bf71228119ce802.zip
r6663: only use -Wall for gcc
(This used to be commit b7fbe2173d45456c77fad9673073173704a1b266)
Diffstat (limited to 'source4')
-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)