summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-05-19 23:24:17 +0000
committerkris <kris@FreeBSD.org>2001-05-19 23:24:17 +0000
commitb2bb87a93e4c87872527bed2ea89b13e858f6b44 (patch)
treeddfd198217a004ce1ab17349fb5b0668c701324d /share/mk/bsd.sys.mk
parent3252dc5107a4f4a57fac1274dac76f4212b58018 (diff)
downloadFreeBSD-src-b2bb87a93e4c87872527bed2ea89b13e858f6b44.zip
FreeBSD-src-b2bb87a93e4c87872527bed2ea89b13e858f6b44.tar.gz
(Previous commit was made prematurely before I could finish composing
the log message) Bring in the WARNS directive from NetBSD, localized in a new bsd.sys.mk to avoid polluting sys.mk. This directive controls the addition of compiler warning flags to CFLAGS in a relatively compiler-neutral manner. The idea is that WARNS can be set in Makefile.inc or in individual Makefiles as they become clean, to prevent the introduction of new warnings in the code (-Werror is added by default when WARNS > 0). This behaviour can be overridden with the following two knobs: NO_WARNS disables the checking of WARNS completely NO_WERROR disables the addition of -Werror to the flags. Additionally, setting WFORMAT to 1 (in makefiles) and/or defining FORMAT_AUDIT (by the user) will enable increased checking of format string arguments. Obtained from: NetBSD Reviewed by: peter
Diffstat (limited to 'share/mk/bsd.sys.mk')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud