]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Use -Wno-decl when running sparse
authorMichael Brown <mcb30@ipxe.org>
Sun, 28 Apr 2013 15:43:32 +0000 (16:43 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 28 Apr 2013 15:43:32 +0000 (16:43 +0100)
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>
src/Makefile.housekeeping

index 6e9178a12205cac23ed69894c0aca94ac0c922c8..4dfaf7aba02b49a667f430f59429feee6862361d 100644 (file)
@@ -207,6 +207,7 @@ endif
 ifeq ($(C),1)
 export REAL_CC := $(CC)
 CC := cgcc
+CFLAGS += -Wno-decl
 endif
 
 ###############################################################################