BUG/MINOR: comp: fix compilation warning compiling without compression.

This is specific to threads, no backport is needed.
This commit is contained in:
Emeric Brun 2017-11-07 11:57:54 +01:00 committed by Willy Tarreau
parent d8b3b65faa
commit 11f5886e5c

View File

@ -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