From: Gerd Hoffmann Date: Wed, 3 May 2023 09:16:30 +0000 (+0200) Subject: disable array bounds warning X-Git-Tag: rel-1.16.3~14 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=be7e899350caa7b74d8271a34264c3b4aef25ab0;p=seabios.git disable array bounds warning The segmented pointer casting magic confuses gcc, recent versions throw array bound warnings. Disable the warning. Signed-off-by: Gerd Hoffmann --- diff --git a/Makefile b/Makefile index c108f87..d334187 100644 --- a/Makefile +++ b/Makefile @@ -71,6 +71,7 @@ COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector,) COMMONCFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,) COMMONCFLAGS += $(call cc-option,$(CC),-fstack-check=no,) COMMONCFLAGS += $(call cc-option,$(CC),-Wno-address-of-packed-member,) +COMMONCFLAGS += $(call cc-option,$(CC),-Wno-array-bounds,) COMMONCFLAGS += $(call cc-option,$(CC),-fcf-protection=none,) COMMA := ,