summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2023-05-03 11:16:30 +0200
committerGerd Hoffmann <kraxel@redhat.com>2023-05-05 09:05:53 +0200
commitbe7e899350caa7b74d8271a34264c3b4aef25ab0 (patch)
treecf698d68b4a28ec88d142342144c25d0f4c730c8
parentea1b7a0733906b8425d948ae94fba63c32b1d425 (diff)
downloadqemu-seabios-master.tar.gz
disable array bounds warningHEADmaster
The segmented pointer casting magic confuses gcc, recent versions throw array bound warnings. Disable the warning. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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 := ,