Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Dec 2011 13:30:15 +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: r228860 - head/sys/conf
Message-ID:  <201112241330.pBODUFkG015081@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 24 13:30:15 2011
New Revision: 228860
URL: http://svn.freebsd.org/changeset/base/228860

Log:
  Make another clang warning, -Wempty-body, non-fatal during kernel
  builds.  All the instances of this warning in our tree are completely
  harmless.  (Most of the empty bodies look to be used simply as reminder
  for the developer to add something later.)
  
  While here, assign to CWARNEXTRA with ?=, so it can be overridden
  easily, if needed.
  
  MFC after:	1 week

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Sat Dec 24 13:28:49 2011	(r228859)
+++ head/sys/conf/kern.mk	Sat Dec 24 13:30:15 2011	(r228860)
@@ -23,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.
-CWARNEXTRA+=	-Wno-error-tautological-compare
+CWARNEXTRA?=	-Wno-error-tautological-compare -Wno-error-empty-body
 .endif
 
 #



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