kernel/gcc80: Add -Werror to the kernel and module builds.
authorSascha Wildner <saw@online.de>
Tue, 4 Sep 2018 22:00:00 +0000 (00:00 +0200)
committerSascha Wildner <saw@online.de>
Tue, 4 Sep 2018 22:00:00 +0000 (00:00 +0200)
sys/conf/kern.pre.mk
sys/conf/kmod.mk

index d443c8c..ac261d1 100644 (file)
@@ -94,7 +94,7 @@ NORMAL_M= awk -f $S/tools/makeobjops.awk -- -c $<; \
 NORMAL_FW= uudecode -o ${.TARGET} ${.ALLSRC}
 NORMAL_FWO= ${LD} -b binary -d -warn-common -r -o ${.TARGET} ${.ALLSRC:M*.fw}
 
-.if !defined(NO_WERROR) && (${CCVER} == "gcc47" || ${CCVER} == "gcc50")
+.if !defined(NO_WERROR) && (${CCVER} == "gcc47" || ${CCVER} == "gcc50" || ${CCVER} == "gcc80")
 WERROR=-Werror
 .endif
 
index f5b8099..75a0f5a 100644 (file)
@@ -77,7 +77,7 @@ KMODMODE?=    ${BINMODE}
 
 .SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S
 
-.if !defined(NO_WERROR) && (${CCVER} == "gcc47" || ${CCVER} == "gcc50")
+.if !defined(NO_WERROR) && (${CCVER} == "gcc47" || ${CCVER} == "gcc50" || ${CCVER} == "gcc80")
 WERROR=-Werror
 .endif