]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
IMPORT: slz: silence a build warning with -Wundef
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Aug 2021 10:10:49 +0000 (12:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Aug 2021 10:47:57 +0000 (12:47 +0200)
The test on FIND_OPTIMAL_MATCH for the experimental code can yield a
build warning when using -Wundef, let's turn it into a regular ifdef.

This is slz upstream commit 05630ae8f22b71022803809eb1e7deb707bb30fb

src/slz.c

index 8eb01174d931e5189f51218f8725251f6e8cce37..9aacb9b7a45fc1fe1cf7d2491c523e752eabbd35 100644 (file)
--- a/src/slz.c
+++ b/src/slz.c
@@ -550,7 +550,7 @@ long slz_rfc1951_encode(struct slz_stream *strm, unsigned char *out, const unsig
                        refs[h].by32.word = word;
                }
 
-#if FIND_OPTIMAL_MATCH
+#ifdef FIND_OPTIMAL_MATCH
                /* Experimental code to see what could be saved with an ideal
                 * longest match lookup algorithm. This one is very slow but
                 * scans the whole window. In short, here are the savings :