From 0fc07eb1fd8bc7f661b0b16ad64f180234a6f443 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 22 Sep 2018 17:21:39 -0700 Subject: [PATCH] fixed zstd-decompress which cannot support ZSTD_minCLevel() --- programs/zstdcli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 6b2c5d10a..c00d05258 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -631,6 +631,7 @@ int main(int argCount, const char* argv[]) compressionParams.windowLog = ldmWindowLog; continue; } +#ifndef ZSTD_NOCOMPRESS /* linking ZSTD_minCLevel() requires compression support */ if (longCommandWArg(&argument, "--fast")) { /* Parse optional acceleration factor */ if (*argument == '=') { @@ -652,6 +653,7 @@ int main(int argCount, const char* argv[]) } continue; } +#endif /* fall-through, will trigger bad_usage() later on */ } -- 2.47.2