fixed constant errors for gcc in c99 mode

C standard does not consider a `static const int` as a constant.
This is a problem for initializer, and ZSTD_STATIC_ASSERT().
Replaced by macro values
This commit is contained in:
Yann Collet
2017-09-26 14:31:06 -07:00
parent 9f0b8dfbe9
commit df4e9bba25
4 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -920,7 +920,7 @@ static int basicUnitTests(U32 seed, double compressibility)
/* custom formats tests */
{ ZSTD_CCtx* const cctx = ZSTD_createCCtx();
static const size_t inputSize = CNBuffSize / 2; /* won't cause pb with small dict size */
size_t const inputSize = CNBuffSize / 2; /* won't cause pb with small dict size */
/* basic block compression */
DISPLAYLEVEL(4, "test%3i : magic-less format test : ", testNb++);