]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixed constant errors for gcc in c99 mode
authorYann Collet <cyan@fb.com>
Tue, 26 Sep 2017 21:31:06 +0000 (14:31 -0700)
committerYann Collet <cyan@fb.com>
Tue, 26 Sep 2017 21:31:06 +0000 (14:31 -0700)
commitdf4e9bba250e8e506594c8af277b7bc4775168ad
tree70478141da67bfbcd7caec35d8114f8f3b2ed895
parent9f0b8dfbe9ff9d938a73a93cd00b8dd94bd8d3f9
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
lib/common/zstd_internal.h
lib/decompress/zstd_decompress.c
lib/zstd.h
tests/fuzzer.c