Kaynağa Gözat

[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>
tags/v1.20.1
Michael Brown 11 yıl önce
ebeveyn
işleme
e5cbfefdf3
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1
    0
      src/Makefile.housekeeping

+ 1
- 0
src/Makefile.housekeeping Dosyayı Görüntüle

@@ -207,6 +207,7 @@ endif
207 207
 ifeq ($(C),1)
208 208
 export REAL_CC := $(CC)
209 209
 CC := cgcc
210
+CFLAGS += -Wno-decl
210 211
 endif
211 212
 
212 213
 ###############################################################################

Loading…
İptal
Kaydet