1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 21:29:06 +00:00

Add -Wall to CFLAGS when using GCC.

This commit is contained in:
david
2012-09-19 15:33:50 +00:00
parent 89d52c8f4f
commit 98bb6cff31
2 changed files with 10 additions and 0 deletions

View File

@@ -3028,6 +3028,11 @@ else
fi
# GCC-specific flags
if test -n "$GCC"; then
CFLAGS="$CFLAGS -Wall"
fi
apr_found="no"

View File

@@ -12,6 +12,11 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_PATH_TOOL([STRIP], [strip], [/bin/true])
# GCC-specific flags
if test -n "$GCC"; then
CFLAGS="$CFLAGS -Wall"
fi
APR_FIND_APR(, , 1, 1)
if test "$apr_found" = "no"; then
AC_MSG_ERROR([libapr is required to build nmap-update.])