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:
parent
d132715684
commit
a6c0f1f242
@ -73,6 +73,9 @@ CWARNFLAGS += -Werror
|
||||
. endif
|
||||
. endif
|
||||
. endif
|
||||
. if defined(NO_WFORMAT)
|
||||
CWARNFLAGS += -Wno-format
|
||||
. endif
|
||||
.endif
|
||||
|
||||
.if defined(IGNORE_PRAGMA)
|
||||
|
Loading…
x
Reference in New Issue
Block a user