kern: Make sure gcc47 - gcc50 don't check for set-not-used
authorJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 23:28:25 +0000 (00:28 +0100)
committerJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 23:28:25 +0000 (00:28 +0100)
sys/conf/bsd.kern.mk

index f43e0f6..04e31fb 100644 (file)
@@ -20,7 +20,7 @@ CFLAGS+=      -Wold-style-declaration \
                -finline-limit=${INLINE_LIMIT} \
                --param inline-unit-growth=100 \
                --param large-function-growth=1000
-.if ${CCVER} == "gcc47"
+.if ${CCVER:Mgcc4[789]} || ${CCVER:Mgcc5*}
 CWARNFLAGS+=   -Wno-unused-but-set-variable
 .endif
 .endif