1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

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.
This commit is contained in:
Peter Wemm 2002-02-25 22:04:33 +00:00
parent 916cd514f2
commit 2faccca61a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91255

View File

@ -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.