From d5ffecf2f5be14880141f33df969f4b23278abc8 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 26 Oct 2020 19:39:45 +0100 Subject: [PATCH] Silenced a compiler warning if zlib is not enabled --- libisofs/filters/zisofs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libisofs/filters/zisofs.c b/libisofs/filters/zisofs.c index 8aa3079..62a3b3e 100644 --- a/libisofs/filters/zisofs.c +++ b/libisofs/filters/zisofs.c @@ -813,6 +813,8 @@ int ziso_stream_compress(IsoStream *stream, void *buf, size_t desired) } +#ifdef Libisofs_with_zliB + static int ziso_algo_to_num(uint8_t zisofs_algo[2]) { @@ -831,6 +833,7 @@ int ziso_algo_to_num(uint8_t zisofs_algo[2]) return -1; } +#endif /* Libisofs_with_zliB */ static int ziso_num_to_algo(uint8_t num, uint8_t zisofs_algo[2])