Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2014 16:01:33 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269979 - head/sys/conf
Message-ID:  <201408141601.s7EG1XXT067364@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Thu Aug 14 16:01:33 2014
New Revision: 269979
URL: http://svnweb.freebsd.org/changeset/base/269979

Log:
  Streamline format extensions. Either the compiler supports them, and
  we enable them and format wordings. Or it doesn't, and we disable
  format warnings because the kernel uses the extensions pervasively.

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Thu Aug 14 15:46:15 2014	(r269978)
+++ head/sys/conf/kern.mk	Thu Aug 14 16:01:33 2014	(r269979)
@@ -29,14 +29,13 @@ NO_WSOMETIMES_UNINITIALIZED=	-Wno-error-
 # 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 -Wno-error-empty-body \
-		-Wno-error-parentheses-equality -Wno-error-unused-function \
-		${NO_WFORMAT}
+		-Wno-error-parentheses-equality -Wno-error-unused-function
 .endif
 
 # External compilers may not support our format extensions.  Allow them
 # to be disabled.  WARNING: format checking is disabled in this case.
 .if ${MK_FORMAT_EXTENSIONS} == "no"
-NO_WFORMAT=		-Wno-format
+FORMAT_EXTENSIONS=	-Wno-format
 .else
 FORMAT_EXTENSIONS=	-fformat-extensions
 .endif



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