From 58c0a549adef617aa92124353d8a5a76094df17c Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 2 Oct 2020 14:10:00 -0700 Subject: fix cppcheck unused variable warning --- tests/fuzzer.c | 1 + 1 file changed, 1 insertion(+) 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) ); -- cgit v0.12