summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.pre.mk
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-02-02 07:43:38 +0000
committerimp <imp@FreeBSD.org>2008-02-02 07:43:38 +0000
commit2c8230f498bfc28ed59a140e3031a78c7dbda32e (patch)
tree13b7c26323b84f6380c960f66e751390adbcf6ae /sys/conf/kern.pre.mk
parentffe35eb26b47803f2afa87f651c9608ecfdf56eb (diff)
downloadFreeBSD-src-2c8230f498bfc28ed59a140e3031a78c7dbda32e.zip
FreeBSD-src-2c8230f498bfc28ed59a140e3031a78c7dbda32e.tar.gz
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.
Diffstat (limited to 'sys/conf/kern.pre.mk')
-rw-r--r--sys/conf/kern.pre.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index a5139f1..5aabf31 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -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
OpenPOWER on IntegriCloud