From 1b1680594182b2b8c562b9f89797aeb206615df4 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 9 Nov 2016 15:10:39 -0800 Subject: fix unused variable warning --- programs/lz4cli.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/programs/lz4cli.c b/programs/lz4cli.c index e3951f8..4ec7038 100644 --- a/programs/lz4cli.c +++ b/programs/lz4cli.c @@ -279,7 +279,6 @@ int main(int argc, const char** argv) cLevelLast=1, legacy_format=0, forceStdout=0, - forceCompress=0, main_pause=0, multiple_inputs=0, operationResult=0; @@ -313,7 +312,7 @@ int main(int argc, const char** argv) if(!argument) continue; /* Protection if argument empty */ /* long commands (--long-word) */ - if (!strcmp(argument, "--compress")) { forceCompress = 1; continue; } + if (!strcmp(argument, "--compress")) { mode = om_compress; continue; } if ((!strcmp(argument, "--decompress")) || (!strcmp(argument, "--uncompress"))) { mode = om_decompress; continue; } if (!strcmp(argument, "--multiple")) { multiple_inputs = 1; if (inFileNames==NULL) inFileNames = (const char**)malloc(argc * sizeof(char*)); continue; } -- cgit v0.12