From owner-cvs-all Sat May 19 16:24:21 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CDBD937B422; Sat, 19 May 2001 16:24:17 -0700 (PDT) (envelope-from kris@FreeBSD.org) Received: (from kris@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4JNOHP86828; Sat, 19 May 2001 16:24:17 -0700 (PDT) (envelope-from kris) Message-Id: <200105192324.f4JNOHP86828@freefall.freebsd.org> From: Kris Kennaway Date: Sat, 19 May 2001 16:24:17 -0700 (PDT) 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 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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