]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
When using gcc, add the -Wlogical-op flag when debugging.
authorRoy Marples <roy@marples.name>
Thu, 4 May 2017 07:54:52 +0000 (08:54 +0100)
committerRoy Marples <roy@marples.name>
Thu, 4 May 2017 07:54:52 +0000 (08:54 +0100)
configure

index fbafab2cc141af01c0c667dba275b036eb196829..b2f646ee8e595afe72eb1f8a1240a9c3a3ea6950 100755 (executable)
--- 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