From: Michael Brown Date: Sun, 28 Apr 2013 15:43:32 +0000 (+0100) Subject: [build] Use -Wno-decl when running sparse X-Git-Tag: v1.20.1~1527 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5cbfefdf3dc337afc71ccd2fbe4126ee5976bfc;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 6e9178a12..4dfaf7aba 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -207,6 +207,7 @@ endif ifeq ($(C),1) export REAL_CC := $(CC) CC := cgcc +CFLAGS += -Wno-decl endif ###############################################################################