fixed gcc warnings
This commit is contained in:
parent
cb56306a50
commit
4f9eaa7bb3
@ -419,10 +419,11 @@ static int FIO_compressFilename_internal(cRess_t ress,
|
|||||||
#ifdef ZSTD_GZCOMPRESS
|
#ifdef ZSTD_GZCOMPRESS
|
||||||
compressedfilesize = FIO_compressGzFrame(&ress, srcFileName, fileSize, compressionLevel, &readsize);
|
compressedfilesize = FIO_compressGzFrame(&ress, srcFileName, fileSize, compressionLevel, &readsize);
|
||||||
// printf("g_compresionType=%d compressionLevel=%d compressedfilesize=%d\n", g_compresionType, compressionLevel, (int)compressedfilesize);
|
// printf("g_compresionType=%d compressionLevel=%d compressedfilesize=%d\n", g_compresionType, compressionLevel, (int)compressedfilesize);
|
||||||
goto finish;
|
|
||||||
#else
|
#else
|
||||||
|
(void)compressionLevel;
|
||||||
EXM_THROW(20, "zstd: %s: file cannot be compressed as gzip (zstd compiled without ZSTD_GZCOMPRESS) -- ignored \n", srcFileName);
|
EXM_THROW(20, "zstd: %s: file cannot be compressed as gzip (zstd compiled without ZSTD_GZCOMPRESS) -- ignored \n", srcFileName);
|
||||||
#endif
|
#endif
|
||||||
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* init */
|
/* init */
|
||||||
|
@ -125,7 +125,7 @@ static int usage_advanced(const char* programName)
|
|||||||
DISPLAY( " -B# : select size of independent sections (default:0==automatic) \n");
|
DISPLAY( " -B# : select size of independent sections (default:0==automatic) \n");
|
||||||
#endif
|
#endif
|
||||||
#ifdef ZSTD_GZCOMPRESS
|
#ifdef ZSTD_GZCOMPRESS
|
||||||
DISPLAY( "--format=gzip : output .gz files \n");
|
DISPLAY( "--format=gzip : compress files to the .gz format \n");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifndef ZSTD_NODECOMPRESS
|
#ifndef ZSTD_NODECOMPRESS
|
||||||
|
Loading…
Reference in New Issue
Block a user