]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
Revert "BUILD: Makefile: disable -Warray-bounds until it's fixed in gcc 11"
authorWilly Tarreau <w@1wt.eu>
Tue, 5 Jan 2021 10:11:38 +0000 (11:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Jan 2021 10:17:28 +0000 (11:17 +0100)
This reverts commit 5e8c35da1b93b64ec4892192aec3d61d73b3bbce.

While the issue is being discussed with gcc folks, a reasonable workaround
could be found for the tls_keys_ref list usage which doesn't significantly
complicate the code. Since it was the only place triggering the warning and
I don't feel very comfortable leaving this one disabled for too long, let's
re-enable it right now. This definitely closes issue #1010.

Makefile

index ec4c1be0e0153bd7c1232de3293aebeafc04e432..0ea3ef6b83aeec6a8a12afa73d7c7dbbc8d6a193 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -195,7 +195,6 @@ 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)