From: Emeric Brun Date: Tue, 7 Nov 2017 10:57:54 +0000 (+0100) Subject: BUG/MINOR: comp: fix compilation warning compiling without compression. X-Git-Tag: v1.8-rc3~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11f5886e5c177de9f77ff11c5848b19a4a8c6e37;p=thirdparty%2Fhaproxy.git 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 d476da58ee..594399a2ff 100644 --- a/src/compression.c +++ b/src/compression.c @@ -41,9 +41,11 @@ #include +#if defined(USE_SLZ) || defined(USE_ZLIB) #ifdef USE_THREAD static HA_SPINLOCK_T comp_pool_lock; #endif +#endif #ifdef USE_ZLIB