]> xenbits.xensource.com Git - seabios.git/commitdiff
disable array bounds warning
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 3 May 2023 09:16:30 +0000 (11:16 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 5 May 2023 07:05:53 +0000 (09:05 +0200)
The segmented pointer casting magic confuses gcc, recent versions
throw array bound warnings.  Disable the warning.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Makefile

index c108f87de7683667d1a0cad6b9e501437468f6ad..d3341870a760db34ebd4c4116bc2b7e8a92c9702 100644 (file)
--- 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 := ,