aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-08-13 00:46:44 +0900
committerTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-08-13 00:46:44 +0900
commitf7e95939e89a13fb944d38d51469f050b83324c2 (patch)
tree028e82fab3a9ba6a44bd7868fe403fb2169dc712
parent46d12d661edda40bedc0ce38247e170b13575aaf (diff)
downloadlz4-f7e95939e89a13fb944d38d51469f050b83324c2.tar.gz
Fix: remove unused value
This patch fixes the following error from "make staticAnalyze" datagencli.c:106:21: warning: Value stored to 'size' is never read size=0; ^ ~
-rw-r--r--tests/datagencli.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/datagencli.c b/tests/datagencli.c
index 1a99190e..2976b530 100644
--- a/tests/datagencli.c
+++ b/tests/datagencli.c
@@ -103,7 +103,6 @@ int main(int argc, char** argv)
return usage(programName);
case 'g':
argument++;
- size=0;
size = strtoull(argument, &argument, 10);
if (*argument=='K') { size <<= 10; argument++; }
if (*argument=='M') { size <<= 20; argument++; }