summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-09 23:10:39 (GMT)
committerYann Collet <cyan@fb.com>2016-11-09 23:10:39 (GMT)
commit1b1680594182b2b8c562b9f89797aeb206615df4 (patch)
tree95919c484407f63cccca51a6206264700926bd2a
parent1b95d60c66bfc80b77066f929263cf3aac412434 (diff)
downloadlz4-1b1680594182b2b8c562b9f89797aeb206615df4.zip
lz4-1b1680594182b2b8c562b9f89797aeb206615df4.tar.gz
lz4-1b1680594182b2b8c562b9f89797aeb206615df4.tar.bz2
fix unused variable warning
-rw-r--r--programs/lz4cli.c3
1 files changed, 1 insertions, 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; }