From eff9a9ef950caa7327515a9f3063228dd9559b29 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 27 Oct 2017 11:06:11 +0200 Subject: [PATCH] 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. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index ed93d29..0ab3067 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 -- 1.7.10.4