From 98bb6cff31e7085c74aeeed50670b7c11ab2d894 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 19 Sep 2012 15:33:50 +0000 Subject: [PATCH] Add -Wall to CFLAGS when using GCC. --- nmap-update/configure | 5 +++++ nmap-update/configure.ac | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/nmap-update/configure b/nmap-update/configure index 138ae2ead..c7e6ce1c3 100755 --- a/nmap-update/configure +++ b/nmap-update/configure @@ -3028,6 +3028,11 @@ else fi +# GCC-specific flags +if test -n "$GCC"; then + CFLAGS="$CFLAGS -Wall" +fi + apr_found="no" diff --git a/nmap-update/configure.ac b/nmap-update/configure.ac index 5b7d07727..cf6bda418 100644 --- a/nmap-update/configure.ac +++ b/nmap-update/configure.ac @@ -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.])