From: Roy Marples Date: Thu, 4 May 2017 07:54:52 +0000 (+0100) Subject: When using gcc, add the -Wlogical-op flag when debugging. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e07ba50759093a38497495acd36deb21848aae8;p=thirdparty%2Fdhcpcd.git When using gcc, add the -Wlogical-op flag when debugging. --- diff --git a/configure b/configure index fbafab2c..b2f646ee 100755 --- a/configure +++ b/configure @@ -380,6 +380,11 @@ EOF sunos*);; *) echo "CFLAGS+= -Wstrict-overflow" >>$CONFIG_MK;; esac + + # Turn on extra per compiler debugging + case "$CC" in + *gcc*) echo "CFLAGS+= -Wlogical-op" >>$CONFIG_MK;; + esac else echo "CPPFLAGS+= -DNDEBUG" >>$CONFIG_MK fi