summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2020-10-02 21:10:00 (GMT)
committerYann Collet <cyan@fb.com>2020-10-02 21:10:00 (GMT)
commit58c0a549adef617aa92124353d8a5a76094df17c (patch)
tree91c7a4907836b1bc0c8a03edec6de45776fa6b7c /tests
parentde52a52518ad0a76a0a078d3db4ee440fad2ff7a (diff)
downloadlz4-58c0a549adef617aa92124353d8a5a76094df17c.zip
lz4-58c0a549adef617aa92124353d8a5a76094df17c.tar.gz
lz4-58c0a549adef617aa92124353d8a5a76094df17c.tar.bz2
fix cppcheck unused variable warning
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzzer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fuzzer.c b/tests/fuzzer.c
index 820ac8e..4fef4af 100644
--- 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) );