mirror of
https://github.com/ipxe/ipxe.git
synced 2026-03-03 20:52:23 +01:00
[build] Use -Wno-decl when running sparse
Linker table entries must be non-static in order to avoid being completely optimised away by some versions of gcc. Use -Wno-decl to prevent sparse from warning about these, since the alternative would be to litter the code with otherwise unnecessary "extern" declarations. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
2e54c4b52e
commit
e5cbfefdf3
@ -207,6 +207,7 @@ endif
|
||||
ifeq ($(C),1)
|
||||
export REAL_CC := $(CC)
|
||||
CC := cgcc
|
||||
CFLAGS += -Wno-decl
|
||||
endif
|
||||
|
||||
###############################################################################
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user