svn commit: r220141 - stable/8/share/mk
Mikolaj Golub
trociny at FreeBSD.org
Tue Mar 29 17:59:30 UTC 2011
Author: trociny
Date: Tue Mar 29 17:59:30 2011
New Revision: 220141
URL: http://svn.freebsd.org/changeset/base/220141
Log:
MFC r219368:
r219368 (pjd):
To be able to use printf extensions we need to turn off gcc format checking.
Following the convention of NO_WERROR and NO_WCAST_ALIGN add NO_WFORMAT,
which, when defined in Makefile, turns off compile-time format checking
(by adding -Wno-format), but still allows to use high WARNS level.
Approved by: kib (co-mentor), pjd (mentor)
Modified:
stable/8/share/mk/bsd.sys.mk
Directory Properties:
stable/8/share/mk/ (props changed)
Modified: stable/8/share/mk/bsd.sys.mk
==============================================================================
--- stable/8/share/mk/bsd.sys.mk Tue Mar 29 17:57:40 2011 (r220140)
+++ stable/8/share/mk/bsd.sys.mk Tue Mar 29 17:59:30 2011 (r220141)
@@ -69,6 +69,9 @@ CWARNFLAGS += -Werror
. endif
. endif
. endif
+. if defined(NO_WFORMAT)
+CWARNFLAGS += -Wno-format
+. endif
.endif
.if defined(IGNORE_PRAGMA)
More information about the svn-src-stable
mailing list