]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: do not disable -Wformat-truncation anymore
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Oct 2019 09:54:24 +0000 (10:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Oct 2019 09:54:24 +0000 (10:54 +0100)
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

index fd8edc596390bd2afeee074dab90ea5dfa4e8d84..edbdbe39d32bec3863cc625f24a6adb840610ff9 100644 (file)
--- 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)