enable WARNS_WERROR by default
authorSimon Schubert <corecode@dragonflybsd.org>
Wed, 16 Sep 2009 11:47:47 +0000 (13:47 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Wed, 16 Sep 2009 11:57:31 +0000 (13:57 +0200)
commit18c2eecf34433a3e986bbd4b72fc03c800c47ac4
treee5e6e3bcf7b60a3c8cbad2ebb0ec780baea3682d
parent477aa711110d3c5e55be563133bada8bd7224ee4
enable WARNS_WERROR by default

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@
etc/defaults/make.conf
share/man/man5/make.conf.5