Wall of shame rather than wall of fame for the -Werror suppression.

If we aren't arm, pc98 or sun4v, then enable treating warnings like
errors.  That doesn't mean these platforms aren't -Werror clean, just
that we haven't enforced it before.  Someone with some spare time
should investigate these three platforms to see if any can be removed.
This commit is contained in:
Warner Losh 2008-02-02 07:43:38 +00:00
parent bbb6d1d6bc
commit 3a00c266dc

View File

@ -87,9 +87,7 @@ CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.
CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT}
CFLAGS+= --param inline-unit-growth=100
CFLAGS+= --param large-function-growth=1000
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386" || \
${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "sparc64"
.if ${MACHINE} != "pc98" && ${MACHINE_ARCH} != "arm" && ${MACHINE} != "sun4v"
WERROR?= -Werror
.endif
.endif