diff options
author | Michael Brown | 2013-04-28 17:43:32 +0200 |
---|---|---|
committer | Michael Brown | 2013-04-28 17:43:32 +0200 |
commit | e5cbfefdf3dc337afc71ccd2fbe4126ee5976bfc (patch) | |
tree | 9535a5291e126fd854427908a031e93ed0d7b090 /src/Makefile.housekeeping | |
parent | [realtek] Print bad MAC address in debug message when inferring no EEPROM (diff) | |
download | ipxe-e5cbfefdf3dc337afc71ccd2fbe4126ee5976bfc.tar.gz ipxe-e5cbfefdf3dc337afc71ccd2fbe4126ee5976bfc.tar.xz ipxe-e5cbfefdf3dc337afc71ccd2fbe4126ee5976bfc.zip |
[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>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 1 |
1 files changed, 1 insertions, 0 deletions
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 ############################################################################### |