Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Dec 2011 13:50:34 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228841 - head/sys/conf
Message-ID:  <201112231350.pBNDoYZW068090@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Dec 23 13:50:33 2011
New Revision: 228841
URL: http://svn.freebsd.org/changeset/base/228841

Log:
  Amend r228822 by not directly adding to CWARNFLAGS, but to an optional
  CWARNEXTRA variable, which gets included into the initial CWARNFLAGS
  setting.  This makes it easier to override CWARNFLAGS with completely
  custom settings (including enabling any disabled warnings).
  
  Reminded by:	arundel
  MFC after:	1 week

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Fri Dec 23 13:20:51 2011	(r228840)
+++ head/sys/conf/kern.mk	Fri Dec 23 13:50:33 2011	(r228841)
@@ -6,7 +6,8 @@
 CWARNFLAGS?=	-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
 		-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
 		-Wundef -Wno-pointer-sign -fformat-extensions \
-		-Wmissing-include-dirs -fdiagnostics-show-option
+		-Wmissing-include-dirs -fdiagnostics-show-option \
+		${CWARNEXTRA}
 #
 # The following flags are next up for working on:
 #	-Wextra
@@ -22,7 +23,7 @@ NO_WSHIFT_COUNT_OVERFLOW=	-Wno-shift-cou
 # Several other warnings which might be useful in some cases, but not severe
 # enough to error out the whole kernel build.  Display them anyway, so there is
 # some incentive to fix them eventually.
-CWARNFLAGS+=	-Wno-error-tautological-compare
+CWARNEXTRA+=	-Wno-error-tautological-compare
 .endif
 
 #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112231350.pBNDoYZW068090>