From: Willy Tarreau Date: Tue, 29 Oct 2019 09:54:24 +0000 (+0100) Subject: BUILD: do not disable -Wformat-truncation anymore X-Git-Tag: v2.1-dev4~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1b16734c017118ce6582b16ea724ec6095e5fc9;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/Makefile b/Makefile index fd8edc5963..edbdbe39d3 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)