From: Yann Collet Date: Sun, 23 Sep 2018 00:21:39 +0000 (-0700) Subject: fixed zstd-decompress X-Git-Tag: v0.0.29~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1332%2Fhead;p=thirdparty%2Fzstd.git fixed zstd-decompress which cannot support ZSTD_minCLevel() --- 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 */ }