X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flzx-compress.c;h=e1b65c7c18573bb721bd71ed6ab457a0892ca911;hb=6177ffdad774cf46516a2ab9d15f03df011b34ac;hp=308c7bf11a728548d6ef60eb3d8ab0211dc52ced;hpb=260370b878a0b1d2351164ae882407ba7de52616;p=wimlib diff --git a/src/lzx-compress.c b/src/lzx-compress.c index 308c7bf1..e1b65c7c 100644 --- a/src/lzx-compress.c +++ b/src/lzx-compress.c @@ -1592,7 +1592,11 @@ lzx_compress(const void *uncompressed_data, size_t uncompressed_size, * Although this could be disabled by default in all cases, it only * takes around 2-3% of the running time of the slow algorithm to do the * verification. */ -#if defined(ENABLE_LZX_DEBUG) || defined(ENABLE_VERIFY_COMPRESSION) + if (ctx->params.algorithm == WIMLIB_LZX_ALGORITHM_SLOW + #if defined(ENABLE_LZX_DEBUG) || defined(ENABLE_VERIFY_COMPRESSION) + || 1 + #endif + ) { struct wimlib_decompressor *decompressor; @@ -1626,7 +1630,6 @@ lzx_compress(const void *uncompressed_data, size_t uncompressed_size, "data verification!"); } } -#endif return compressed_size; }