diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-05-07 23:19:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:33 -0500 |
commit | 238f36b8995d959ffe5174054bf71228119ce802 (patch) | |
tree | 2ba46aa89aa322bfc326e621b3c1d48c60708885 /source4/lib | |
parent | 3059fb2bc748a8ff1876d0f840a50b73139445f2 (diff) | |
download | samba-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/lib')
-rw-r--r-- | source4/lib/talloc/Makefile.in | 4 | ||||
-rw-r--r-- | source4/lib/talloc/configure.in | 3 |
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) |