mirror of
https://github.com/facebook/zstd.git
synced 2025-03-07 01:10:04 +02:00
Ensure print*CParams functions are only defined when used
This commit is contained in:
parent
f6ffd39230
commit
365c91194c
@ -652,6 +652,8 @@ static const char* ZSTD_strategyMap[ZSTD_NB_STRATEGIES + 1] = { "", "ZSTD_fast",
|
||||
"ZSTD_dfast", "ZSTD_greedy", "ZSTD_lazy", "ZSTD_lazy2", "ZSTD_btlazy2",
|
||||
"ZSTD_btopt", "ZSTD_btultra", "ZSTD_btultra2"};
|
||||
|
||||
#ifndef ZSTD_NOCOMPRESS
|
||||
|
||||
static void printDefaultCParams(const char* filename, const char* dictFileName, int cLevel) {
|
||||
unsigned long long fileSize = UTIL_getFileSize(filename);
|
||||
const size_t dictSize = dictFileName != NULL ? (size_t)UTIL_getFileSize(dictFileName) : 0;
|
||||
@ -685,6 +687,8 @@ static void printActualCParams(const char* filename, const char* dictFileName, i
|
||||
actualCParams.minMatch, actualCParams.targetLength, actualCParams.strategy);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* Environment variables for parameter setting */
|
||||
#define ENV_CLEVEL "ZSTD_CLEVEL"
|
||||
#define ENV_NBTHREADS "ZSTD_NBTHREADS" /* takes lower precedence than directly specifying -T# in the CLI */
|
||||
|
Loading…
x
Reference in New Issue
Block a user