From c1b16734c017118ce6582b16ea724ec6095e5fc9 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 29 Oct 2019 10:54:24 +0100 Subject: [PATCH] BUILD: do not disable -Wformat-truncation anymore There were very few entries to fix and this warning, while often wrong, can actually spot future issues. If it can help developers adjust their code in the future to make it more robust, it's not necessarily that bad. Let's re-enable it and see how it goes. --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index fd8edc596..edbdbe39d 100644 --- a/Makefile +++ b/Makefile @@ -182,7 +182,6 @@ REG_TEST_SCRIPT=./scripts/run-regtests.sh # to be sure we get the intended behavior. SPEC_CFLAGS := -fno-strict-aliasing -Wdeclaration-after-statement SPEC_CFLAGS += $(call cc-opt-alt,-fwrapv,$(call cc-opt,-fno-strict-overflow)) -SPEC_CFLAGS += $(call cc-nowarn,format-truncation) SPEC_CFLAGS += $(call cc-nowarn,address-of-packed-member) SPEC_CFLAGS += $(call cc-nowarn,unused-label) SPEC_CFLAGS += $(call cc-nowarn,sign-compare)