svn commit: r269979 - head/sys/conf

Warner Losh imp at FreeBSD.org
Thu Aug 14 16:01:34 UTC 2014


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


More information about the svn-src-head mailing list