svn commit: r219368 - head/share/mk
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Mar 7 09:28:22 UTC 2011
Author: pjd
Date: Mon Mar 7 09:28:21 2011
New Revision: 219368
URL: http://svn.freebsd.org/changeset/base/219368
Log:
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.
MFC after: 2 weeks
Modified:
head/share/mk/bsd.sys.mk
Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk Mon Mar 7 09:04:06 2011 (r219367)
+++ head/share/mk/bsd.sys.mk Mon Mar 7 09:28:21 2011 (r219368)
@@ -73,6 +73,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-all
mailing list