]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: Makefile: disable -Wunused-label
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Oct 2017 09:06:11 +0000 (11:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Oct 2017 09:06:11 +0000 (11:06 +0200)
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

index ed93d29373135481ff6312253615f41fa60fbbd3..0ab30675b6865eda52d9311715092a754ea5202c 100644 (file)
--- 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