mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-12-25 07:29:33 -05:00
make safe_flag treat unknown warnings as missing
This commit is contained in:
parent
b6b910f032
commit
cc8c4459e1
2
Makefile
2
Makefile
@ -21,7 +21,7 @@ CONFIG_N_ARENA := 4
|
|||||||
CONFIG_STATS := false
|
CONFIG_STATS := false
|
||||||
|
|
||||||
define safe_flag
|
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
|
endef
|
||||||
|
|
||||||
CPPFLAGS := $(CPPFLAGS) -D_GNU_SOURCE
|
CPPFLAGS := $(CPPFLAGS) -D_GNU_SOURCE
|
||||||
|
Loading…
Reference in New Issue
Block a user