aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2007-07-06 00:52:29 +0000
committerPeter Wemm <peter@FreeBSD.org>2007-07-06 00:52:29 +0000
commit0a6bd02876bde979fef5298a23d9362a16aef70a (patch)
treea9361829c0eb396fc1b197ec61af6ef7dd562665 /sys
parent89200512b3c58ab604b9ba3129734ddf47ff85d5 (diff)
downloadsrc-0a6bd02876bde979fef5298a23d9362a16aef70a.tar.gz
src-0a6bd02876bde979fef5298a23d9362a16aef70a.zip
Turn on -Werror for sparc64 and sun4v.
Approved by: re (rwatson)
Notes
Notes: svn path=/head/; revision=171266
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/kern.pre.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 8ba7b2ae777a..aa3d505c6532 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -90,7 +90,8 @@ 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_ARCH} == "i386"
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || \
+ ${MACHINE_ARCH} == "sparc64"
WERROR?= -Werror
.endif
.endif