From 782e9be1b3659ff973eed62837c5fe4eca6d376e Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 5 Jan 2021 11:11:38 +0100 Subject: [PATCH] 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. --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index ec4c1be0e..0ea3ef6b8 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)