From: Willy Tarreau Date: Fri, 27 Oct 2017 09:06:11 +0000 (+0200) Subject: BUILD: Makefile: disable -Wunused-label X-Git-Tag: v1.8-rc1~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eff9a9ef950caa7327515a9f3063228dd9559b29;p=thirdparty%2Fhaproxy.git BUILD: Makefile: disable -Wunused-label It's becoming extremely tricky not to make gcc warn about unused labels with support for openssl 1.1 and 1.1.1, because some error paths only exist for certain versions. Latest patch causes a warning for me on 1.0.2. There is no real point it warning about an unused error label so let's disable this warning. --- diff --git a/Makefile b/Makefile index ed93d29373..0ab30675b6 100644 --- a/Makefile +++ b/Makefile @@ -149,6 +149,7 @@ SPEC_CFLAGS += $(call cc-opt,-fwrapv) SPEC_CFLAGS += $(call cc-nowarn,format-truncation) SPEC_CFLAGS += $(call cc-nowarn,address-of-packed-member) SPEC_CFLAGS += $(call cc-nowarn,null-dereference) +SPEC_CFLAGS += $(call cc-nowarn,unused-label) #### Memory usage tuning # If small memory footprint is required, you can reduce the buffer size. There