]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Silence warnings in --enable-small build.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 14 Feb 2024 17:21:45 +0000 (19:21 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 14 Feb 2024 17:21:45 +0000 (19:21 +0200)
src/liblzma/lzma/lzma_decoder.c
src/liblzma/rangecoder/range_decoder.h

index 58045e11bcfcea6f99e8a7edbd619ff2dadd61e6..0abed02b81546ba434c433f742540d315140a27c 100644 (file)
@@ -853,7 +853,9 @@ slow:
                                                //     that EOPM might be used
                                                //     (it's not allowed in
                                                //     LZMA2).
+#ifndef HAVE_SMALL
 eopm:
+#endif
                                                if (!eopm_is_valid) {
                                                        ret = LZMA_DATA_ERROR;
                                                        goto out;
index 4c09eeaefe56fcaf6d708c6d42a09e848eed18a4..e70d73efb3a5a5c4e7a45966e36f134d1e252712 100644 (file)
@@ -98,6 +98,7 @@ rc_read_init(lzma_range_decoder *rc, const uint8_t *restrict in,
                        = (rc_in_end - rc_in_ptr) <= (fast_mode_in_required) \
                        ? rc_in_ptr \
                        : rc_in_end - (fast_mode_in_required); \
+       (void)rc_in_fast_end; /* Silence a warning with HAVE_SMALL. */ \
        uint32_t rc_bound