diff options
author | pjd <pjd@FreeBSD.org> | 2011-03-07 09:28:21 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-03-07 09:28:21 +0000 |
commit | 52a9fb065914833155163aba6343c90a111ad180 (patch) | |
tree | 95fec0837d92abc88afe149c45e5ce77a708981b | |
parent | c1c16dcf08eba61c74ed2b7529433b3de0ec3026 (diff) | |
download | FreeBSD-src-52a9fb065914833155163aba6343c90a111ad180.zip FreeBSD-src-52a9fb065914833155163aba6343c90a111ad180.tar.gz |
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
-rw-r--r-- | share/mk/bsd.sys.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index f6f8a00..fc5ec40 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -73,6 +73,9 @@ CWARNFLAGS += -Werror . endif . endif . endif +. if defined(NO_WFORMAT) +CWARNFLAGS += -Wno-format +. endif .endif .if defined(IGNORE_PRAGMA) |