From: Scott Baker Date: Sat, 5 Jun 2021 05:03:33 +0000 (-0700) Subject: Move the variable declarations to the top X-Git-Tag: v1.5.1~1^2~149^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e0d9f1cc83a0795a2eb8401dc92369a899614c1;p=thirdparty%2Fzstd.git Move the variable declarations to the top --- diff --git a/programs/fileio.c b/programs/fileio.c index b5beb145c..b347da423 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -1544,6 +1544,9 @@ FIO_compressFilename_internal(FIO_ctx_t* const fCtx, U64 readsize = 0; U64 compressedfilesize = 0; U64 const fileSize = UTIL_getFileSize(srcFileName); + char inputSizeStr[8] = ""; + char outputSizeStr[8] = ""; + DISPLAYLEVEL(5, "%s: %llu bytes \n", srcFileName, (unsigned long long)fileSize); /* compression format selection */ @@ -1598,10 +1601,7 @@ FIO_compressFilename_internal(FIO_ctx_t* const fCtx, (unsigned long long)readsize, (unsigned long long) compressedfilesize, dstFileName); } else { - char inputSizeStr[8] = ""; humanSize((unsigned long long) readsize, inputSizeStr); - - char outputSizeStr[8] = ""; humanSize((unsigned long long) compressedfilesize, outputSizeStr); DISPLAYLEVEL(2,"%-20s :%6.2f%% (%s => %s, %s) \n",