diff options
author | Willy Tarreau <w@1wt.eu> | 2021-08-28 12:10:49 +0200 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2021-08-28 12:47:57 +0200 |
commit | fc89c3fd2b773e67c351f74459401ab6b8ac6c8c (patch) | |
tree | 19050902d68e6db5c11ccb944e2fcea142d3dee0 | |
parent | 6e5542e9f45bd72ef3975f1dc4d4193a824f5e03 (diff) | |
download | haproxy-fc89c3fd2b773e67c351f74459401ab6b8ac6c8c.tar.gz |
IMPORT: slz: silence a build warning with -Wundef
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
-rw-r--r-- | src/slz.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 : |