aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-10-19 17:14:57 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-10-19 17:14:57 +0300
commit82fcb7cfc17ce62f79ebc7ca2374e1daca5e4d5e (patch)
tree78cf1de530145ed91c46a683ccb3512f03380e20 /tests
parentTests: Add test_memlimit to .gitignore. (diff)
downloadxz-82fcb7cfc17ce62f79ebc7ca2374e1daca5e4d5e.tar.xz
Tests: Fix a warning in test_memlimit.c when decoders are disabled.
Diffstat (limited to '')
-rw-r--r--tests/test_memlimit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_memlimit.c b/tests/test_memlimit.c
index 4e16903d..c45a44b5 100644
--- a/tests/test_memlimit.c
+++ b/tests/test_memlimit.c
@@ -20,7 +20,10 @@
static uint8_t *in;
static size_t in_size;
+
+#ifdef HAVE_DECODERS
static uint8_t out[8192];
+#endif
static void