fixed gcc warnings

This commit is contained in:
Przemyslaw Skibinski 2017-02-08 18:08:09 +01:00
parent cb56306a50
commit 4f9eaa7bb3
2 changed files with 3 additions and 2 deletions

View File

@ -419,10 +419,11 @@ static int FIO_compressFilename_internal(cRess_t ress,
#ifdef ZSTD_GZCOMPRESS
compressedfilesize = FIO_compressGzFrame(&ress, srcFileName, fileSize, compressionLevel, &readsize);
// printf("g_compresionType=%d compressionLevel=%d compressedfilesize=%d\n", g_compresionType, compressionLevel, (int)compressedfilesize);
goto finish;
#else
(void)compressionLevel;
EXM_THROW(20, "zstd: %s: file cannot be compressed as gzip (zstd compiled without ZSTD_GZCOMPRESS) -- ignored \n", srcFileName);
#endif
goto finish;
}
/* init */

View File

@ -125,7 +125,7 @@ static int usage_advanced(const char* programName)
DISPLAY( " -B# : select size of independent sections (default:0==automatic) \n");
#endif
#ifdef ZSTD_GZCOMPRESS
DISPLAY( "--format=gzip : output .gz files \n");
DISPLAY( "--format=gzip : compress files to the .gz format \n");
#endif
#endif
#ifndef ZSTD_NODECOMPRESS