make safe_flag treat unknown warnings as missing

pull/103/head
Daniel Micay 2019-08-18 01:14:45 -04:00
parent b6b910f032
commit cc8c4459e1
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ CONFIG_N_ARENA := 4
CONFIG_STATS := false
define safe_flag
$(shell $(CC) -E $1 - </dev/null >/dev/null 2>&1 && echo $1 || echo $2)
$(shell $(CC) $(if $(filter clang,$(CC)),-Werror=unknown-warning-option) -E $1 - </dev/null >/dev/null 2>&1 && echo $1 || echo $2)
endef
CPPFLAGS := $(CPPFLAGS) -D_GNU_SOURCE