From 238f36b8995d959ffe5174054bf71228119ce802 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 7 May 2005 23:19:44 +0000 Subject: r6663: only use -Wall for gcc (This used to be commit b7fbe2173d45456c77fad9673073173704a1b266) --- source4/lib/talloc/Makefile.in | 4 +--- source4/lib/talloc/configure.in | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'source4/lib') 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) -- cgit