зеркало из
https://git.tukaani.org/xz.git
synced 2025-07-05 20:06:38 +00:00
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.
Этот коммит содержится в:
родитель
7c23c05bef
Коммит
765354b50c
@ -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] = {
|
static lzma_filter filters_four[5] = {
|
||||||
{
|
{
|
||||||
.id = LZMA_FILTER_X86,
|
.id = LZMA_FILTER_X86,
|
||||||
@ -52,6 +55,7 @@ static lzma_filter filters_four[5] = {
|
|||||||
.id = LZMA_VLI_UNKNOWN,
|
.id = LZMA_VLI_UNKNOWN,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static lzma_filter filters_five[6] = {
|
static lzma_filter filters_five[6] = {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user