mirror of
https://github.com/nmap/nmap.git
synced 2026-10-08 06:12:23 +00:00
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:
parent
98bb6cff31
commit
6270d3f7c9
3 changed files with 7 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
4
nmap-update/configure
vendored
4
nmap-update/configure
vendored
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue