Date: Sat, 19 May 2001 16:24:17 -0700 (PDT) From: Kris Kennaway <kris@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/share/mk Makefile bsd.kmod.mk bsd.lib.mk bsd.prog.mk bsd.sys.mk Message-ID: <200105192324.f4JNOHP86828@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
kris 2001/05/19 16:24:17 PDT Modified files: share/mk Makefile bsd.kmod.mk bsd.lib.mk bsd.prog.mk bsd.sys.mk Log: (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 Revision Changes Path 1.32 +1 -1 src/share/mk/Makefile 1.88 +1 -1 src/share/mk/bsd.kmod.mk 1.97 +1 -1 src/share/mk/bsd.lib.mk 1.97 +1 -1 src/share/mk/bsd.prog.mk 1.2 +1 -1 src/share/mk/bsd.sys.mk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105192324.f4JNOHP86828>