mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-27 15:12:11 +00:00
BUILD: Makefile: disable -Warray-bounds until it's fixed in gcc 11
Ilya reported in issue #1010 that gcc 11 (still in development phase 3) sees out-of-bounds accesses to tlskeys_reference. After a deep analysis it turns out that the warning is erroneous and Tim could set up a reproducer that was further simplified to file a gcc bug report (98503). In order not to break builds on this version, let's temporarily disable the warning, since no acceptable workaround could be defined. Once gcc gets it right, the warning should be re-enabled as it is likely to catch real errors (it's the first false positive here for us even though roughly one hundred issues were reported around this one alone).
This commit is contained in:
parent
23cc52d34b
commit
5e8c35da1b
1
Makefile
1
Makefile
@ -195,6 +195,7 @@ SPEC_CFLAGS += $(call cc-nowarn,clobbered)
|
||||
SPEC_CFLAGS += $(call cc-nowarn,missing-field-initializers)
|
||||
SPEC_CFLAGS += $(call cc-nowarn,cast-function-type)
|
||||
SPEC_CFLAGS += $(call cc-nowarn,string-plus-int)
|
||||
SPEC_CFLAGS += $(call cc-nowarn,array-bounds)
|
||||
SPEC_CFLAGS += $(call cc-opt,-Wtype-limits)
|
||||
SPEC_CFLAGS += $(call cc-opt,-Wshift-negative-value)
|
||||
SPEC_CFLAGS += $(call cc-opt,-Wshift-overflow=2)
|
||||
|
Loading…
Reference in New Issue
Block a user