Skip to content

Commit

Permalink
liblzma: Silence warnings in --enable-small build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Larhzu committed Feb 14, 2024
1 parent 38edf47 commit a4557ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/liblzma/lzma/lzma_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,9 @@ lzma_decode(void *coder_ptr, lzma_dict *restrict dictptr,
// 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;
Expand Down
1 change: 1 addition & 0 deletions src/liblzma/rangecoder/range_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit a4557ba

Please sign in to comment.