fix cppcheck unused variable warning
authorYann Collet <cyan@fb.com>
Fri, 2 Oct 2020 21:10:00 +0000 (14:10 -0700)
committerYann Collet <cyan@fb.com>
Fri, 2 Oct 2020 21:10:00 +0000 (14:10 -0700)
tests/fuzzer.c

index 820ac8e..4fef4af 100644 (file)
@@ -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) );