From 11f5886e5c177de9f77ff11c5848b19a4a8c6e37 Mon Sep 17 00:00:00 2001 From: Emeric Brun Date: Tue, 7 Nov 2017 11:57:54 +0100 Subject: [PATCH] BUG/MINOR: comp: fix compilation warning compiling without compression. This is specific to threads, no backport is needed. --- src/compression.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compression.c b/src/compression.c index d476da58e..594399a2f 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