From ad64d5145163925c30667000ad2a25728135fa7a Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 25 Feb 2002 22:04:33 +0000 Subject: 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. --- sys/conf/kern.pre.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/conf/kern.pre.mk') 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. -- cgit v1.1