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
This commit is contained in:
Pawel Jakub Dawidek 2011-03-07 09:28:21 +00:00
parent d132715684
commit a6c0f1f242

View File

@ -73,6 +73,9 @@ CWARNFLAGS += -Werror
. endif
. endif
. endif
. if defined(NO_WFORMAT)
CWARNFLAGS += -Wno-format
. endif
.endif
.if defined(IGNORE_PRAGMA)