diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-01-11 01:18:50 +0800 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-11 17:31:54 +0200 |
commit | b7fb438ea0e3ee02e3a164f3b72fae456cbe34d7 (patch) | |
tree | 1609574ccfd3a3552f9e426111a4be370b1bc945 | |
parent | Tests: Fix unused function warning in test_index_hash. (diff) | |
download | xz-b7fb438ea0e3ee02e3a164f3b72fae456cbe34d7.tar.xz |
Tests: Fix unused function warning in test_block_header.
One of the global arrays of filters was only used in a test that
required both encoders and decoders to be configured in the build.
-rw-r--r-- | tests/test_block_header.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_block_header.c b/tests/test_block_header.c index 6b42df22..747925b3 100644 --- a/tests/test_block_header.c +++ b/tests/test_block_header.c @@ -35,6 +35,9 @@ static lzma_filter filters_one[2] = { }; +// These filters are only used in test_lzma_block_header_decode() +// which only runs if encoders and decoders are configured. +#ifdef HAVE_DECODERS static lzma_filter filters_four[5] = { { .id = LZMA_FILTER_X86, @@ -52,6 +55,7 @@ static lzma_filter filters_four[5] = { .id = LZMA_VLI_UNKNOWN, } }; +#endif static lzma_filter filters_five[6] = { |