This is to catch new warnings sneaking into buildworld. WARNS_WERROR
means that -Werror is added to sources iff compiled with WARNS >= 1.
All these sources have been fixed to currently compile without warnings.
Setting WARNS_WERROR helps us to maintain this status.
If your build should fail with a warning treated as error, you either
have introduced a new warning - in which case you will have to fix it
before committing - or you are using CFLAGS that exhibit warnings which
have not been fixed yet - in that case you should try and fix the
warning nevertheless.
*Only* if you are using compile flags which produce excess warnings, you
should disable WARNS_WERROR by setting NO_WERROR in make.conf. If you
do, make *absolutely* sure that you don't introduce new warnings into
the build, since it will break the build for everybody else who does not
set NO_WERROR!
Discussed-with: swildner@
-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
#
# WARNS_WERROR causes -Werror to be added when WARNS is in effect.
-#WARNS_WERROR= yes
+# Set NO_WERROR to disable.
+WARNS_WERROR= yes
#
# To compile just the kernel with special optimizations, you should use
# this instead of CFLAGS (which is not applicable to kernel builds anyway).
to be added to
.Va CWARNFLAGS
when WARNS is in effect.
+.Va WARNS_WERROR
+is enabled by default.
+Set
+.Va NO_WERROR
+to disable
+.Fl Werror .
.It Va WANT_HESIOD
.Pq Vt bool
Set this to build
The generic caching daemon,
.Xr nscd 8 ,
will not be built either if this option is set.
+.It Va NO_WERROR
+Set this if you don't want
+.Fl Werror
+to be added to
+.Va CWARNFLAGS .
+See also
+.Va WARNS_WERROR .
.It Va STATIC_LOCALES
.Pq Vt str
Set to a list of locales to build into statically-linked binaries.