From e5cbfefdf3dc337afc71ccd2fbe4126ee5976bfc Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 28 Apr 2013 16:43:32 +0100 Subject: [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 --- src/Makefile.housekeeping | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Makefile.housekeeping') diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 6e9178a1..4dfaf7ab 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 ############################################################################### -- cgit v1.2.3-55-g7522