From: Yonatan Komornik <11005061+yoniko@users.noreply.github.com> Date: Thu, 22 Sep 2022 15:20:46 +0000 (-0700) Subject: Removed unused variable (#3272) X-Git-Tag: v1.5.4^2~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21bd8c3b3c844ce18281de4f2975d66da330aee0;p=thirdparty%2Fzstd.git Removed unused variable (#3272) --- diff --git a/tests/zstreamtest.c b/tests/zstreamtest.c index 94eb848aa..ce9020f12 100644 --- a/tests/zstreamtest.c +++ b/tests/zstreamtest.c @@ -1974,8 +1974,9 @@ static int fuzzerTests(U32 seed, unsigned nbTests, unsigned startTest, double co /* multi-segments compression test */ XXH64_reset(&xxhState, 0); { ZSTD_outBuffer outBuff = { cBuffer, cBufferSize, 0 } ; - U32 n; - for (n=0, cSize=0, totalTestSize=0 ; totalTestSize < maxTestSize ; n++) { + cSize=0; + totalTestSize=0; + while(totalTestSize < maxTestSize) { /* compress random chunks into randomly sized dst buffers */ { size_t const randomSrcSize = FUZ_randomLength(&lseed, maxSampleLog); size_t const srcSize = MIN(maxTestSize-totalTestSize, randomSrcSize);