]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: Makefile: disable -Warray-bounds until it's fixed in gcc 11
authorWilly Tarreau <w@1wt.eu>
Sun, 3 Jan 2021 19:27:13 +0000 (20:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 3 Jan 2021 19:27:13 +0000 (20:27 +0100)
commit5e8c35da1b93b64ec4892192aec3d61d73b3bbce
tree9674727deb1b8109c3685941d6c312eb6e6493c1
parent23cc52d34b89fa1f2ec2c4b3ac1526bae84aff93
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).
Makefile