projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de52a52
)
fix cppcheck unused variable warning
author
Yann Collet
<cyan@fb.com>
Fri, 2 Oct 2020 21:10:00 +0000
(14:10 -0700)
committer
Yann Collet
<cyan@fb.com>
Fri, 2 Oct 2020 21:10:00 +0000
(14:10 -0700)
tests/fuzzer.c
patch
|
blob
|
history
diff --git
a/tests/fuzzer.c
b/tests/fuzzer.c
index
820ac8e
..
4fef4af
100644
(file)
--- a/
tests/fuzzer.c
+++ b/
tests/fuzzer.c
@@
-1208,6
+1208,7
@@
static void FUZ_unitTests(int compressionLevel)
char c2;
LZ4_streamHC_t hc3;
} shc;
+ (void)shc.c1; (void)shc.c2; /* tell cppcheck these variables are unused */
DISPLAYLEVEL(3, "hc1(%p) hc2(%p) hc3(%p) size(0x%x): ",
&(shc.hc1), &(shc.hc2), &(shc.hc3), (unsigned)sizeof(LZ4_streamHC_t));
FUZ_CHECKTEST( LZ4_initStreamHC(&(shc.hc1), sizeof(shc.hc1)) == NULL, "hc1 (%p) failed init", &(shc.hc1) );