Move -Wno-deprecated-declarations from Makefile.in to configure.ac.

It's a flag specific to GCC, so shouldn't be set unconditionally.
This commit is contained in:
david 2012-09-19 15:33:56 +00:00
parent 98bb6cff31
commit 6270d3f7c9
3 changed files with 7 additions and 3 deletions

View file

@ -6,7 +6,7 @@ bindir = @bindir@
mandir = @mandir@
CC = @CC@
CFLAGS = @CFLAGS@ -Wno-deprecated-declarations
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@ $(DEFS) -I$(NBASEDIR)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ $(NBASELIB)

View file

@ -3030,7 +3030,9 @@ fi
# GCC-specific flags
if test -n "$GCC"; then
CFLAGS="$CFLAGS -Wall"
# -Wno-deprecated-declarations is because we use an older version of the
# Subversion API for compatibility.
CFLAGS="$CFLAGS -Wall -Wno-deprecated-declarations"
fi

View file

@ -14,7 +14,9 @@ AC_PATH_TOOL([STRIP], [strip], [/bin/true])
# GCC-specific flags
if test -n "$GCC"; then
CFLAGS="$CFLAGS -Wall"
# -Wno-deprecated-declarations is because we use an older version of the
# Subversion API for compatibility.
CFLAGS="$CFLAGS -Wall -Wno-deprecated-declarations"
fi
APR_FIND_APR(, , 1, 1)