summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.pre.mk
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-02-25 22:04:33 +0000
committerpeter <peter@FreeBSD.org>2002-02-25 22:04:33 +0000
commitad64d5145163925c30667000ad2a25728135fa7a (patch)
tree63ea4e1071a9a63ecda548713f21feccf8924435 /sys/conf/kern.pre.mk
parentbcb7976abde6cbe245e1fed1d9e396e2ed9fe316 (diff)
downloadFreeBSD-src-ad64d5145163925c30667000ad2a25728135fa7a.zip
FreeBSD-src-ad64d5145163925c30667000ad2a25728135fa7a.tar.gz
Turn on -Werror by default. This is is easily turned off, by either:
- fix the warnings, they are there for a reason! - add -DNO_ERROR to your make(1) command. - add 'makeoptions NO_WERROR=true' to your kernel config. - add 'nowerror' to conf/files* that have warnings that should be fixed due to tracking 3rd party vendor code. - add 'nowerror' to conf/files* where the warning is false due to a compiler bug and fixing it with brute force would be too expensive. There are some very sloppy warnings in our kernel build, come on folks! 'make release' uses -DNO_WERROR intentionally.
Diffstat (limited to 'sys/conf/kern.pre.mk')
-rw-r--r--sys/conf/kern.pre.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 261025f..0b5a9c0 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -58,11 +58,11 @@ PROF+= -mprofiler-epilogue
.endif
.endif
-#.if defined(NO_WERROR)
-#WERROR=
-#.else
-#WERROR?= -Werror
-#.endif
+.if defined(NO_WERROR)
+WERROR=
+.else
+WERROR?= -Werror
+.endif
# Put configuration-specific C flags last (except for ${PROF}) so that they
# can override the others.
OpenPOWER on IntegriCloud