commit | 11f5886e5c177de9f77ff11c5848b19a4a8c6e37 | [log] [tgz] |
---|---|---|
author | Emeric Brun <ebrun@haproxy.com> | Tue Nov 07 11:57:54 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Nov 07 14:48:13 2017 +0100 |
tree | 8e221c8685ac9e28d02ba66e8b70c587bdc44aa1 | |
parent | d8b3b65faa62d8b9b4344014e7183e422769caea [diff] |
BUG/MINOR: comp: fix compilation warning compiling without compression. This is specific to threads, no backport is needed.
diff --git a/src/compression.c b/src/compression.c index d476da5..594399a 100644 --- a/src/compression.c +++ b/src/compression.c
@@ -41,9 +41,11 @@ #include <proto/stream.h> +#if defined(USE_SLZ) || defined(USE_ZLIB) #ifdef USE_THREAD static HA_SPINLOCK_T comp_pool_lock; #endif +#endif #ifdef USE_ZLIB