From: Willy Tarreau Date: Tue, 5 Jan 2021 10:11:38 +0000 (+0100) Subject: Revert "BUILD: Makefile: disable -Warray-bounds until it's fixed in gcc 11" X-Git-Tag: v2.4-dev5~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=782e9be1b3659ff973eed62837c5fe4eca6d376e;p=thirdparty%2Fhaproxy.git Revert "BUILD: Makefile: disable -Warray-bounds until it's fixed in gcc 11" 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. --- diff --git a/Makefile b/Makefile index ec4c1be0e0..0ea3ef6b83 100644 --- 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)