]> git.ipfire.org Git - thirdparty/zstd.git/commit
[lib] Add ZSTD_NO_UNUSED_FUNCTIONS macro to hide unused functions
authorNick Terrell <terrelln@fb.com>
Fri, 28 Aug 2020 00:10:04 +0000 (17:10 -0700)
committerNick Terrell <terrelln@fb.com>
Wed, 9 Sep 2020 21:35:39 +0000 (14:35 -0700)
commit79ded1b4a99417c841960f5a5338ac6d94c4cde4
tree9c9886d479358de0edded26bca363c0ae79167a7
parentac3a136b0ac1a0b9e054dd96e19c9ec72213fd90
[lib] Add ZSTD_NO_UNUSED_FUNCTIONS macro to hide unused functions

The unused function definitions are hidden behind a
`#ifndef ZSTD_NO_UNUSED_FUNCTIONS` check.

Initially hiding all functions which are unused and take up more than
2KB of stack space, because these will show up as warnings in the
Linux Kernel build system.
lib/common/fse_decompress.c
lib/compress/fse_compress.c
lib/compress/hist.c
lib/compress/huf_compress.c
lib/decompress/huf_decompress.c