mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
liblzma: Remove incorrect uses of lzma_attribute((__unused__)).
Caught by clang -Wused-but-marked-unused.
This commit is contained in:
parent
cb708e8fa3
commit
0e3c4002f8
3 changed files with 3 additions and 6 deletions
|
@ -50,8 +50,7 @@ typedef struct {
|
||||||
|
|
||||||
|
|
||||||
static lzma_ret
|
static lzma_ret
|
||||||
alone_decode(void *coder_ptr,
|
alone_decode(void *coder_ptr, const lzma_allocator *allocator,
|
||||||
const lzma_allocator *allocator lzma_attribute((__unused__)),
|
|
||||||
const uint8_t *restrict in, size_t *restrict in_pos,
|
const uint8_t *restrict in, size_t *restrict in_pos,
|
||||||
size_t in_size, uint8_t *restrict out,
|
size_t in_size, uint8_t *restrict out,
|
||||||
size_t *restrict out_pos, size_t out_size,
|
size_t *restrict out_pos, size_t out_size,
|
||||||
|
|
|
@ -31,8 +31,7 @@ typedef struct {
|
||||||
|
|
||||||
|
|
||||||
static lzma_ret
|
static lzma_ret
|
||||||
alone_encode(void *coder_ptr,
|
alone_encode(void *coder_ptr, const lzma_allocator *allocator,
|
||||||
const lzma_allocator *allocator lzma_attribute((__unused__)),
|
|
||||||
const uint8_t *restrict in, size_t *restrict in_pos,
|
const uint8_t *restrict in, size_t *restrict in_pos,
|
||||||
size_t in_size, uint8_t *restrict out,
|
size_t in_size, uint8_t *restrict out,
|
||||||
size_t *restrict out_pos, size_t out_size,
|
size_t *restrict out_pos, size_t out_size,
|
||||||
|
|
|
@ -131,8 +131,7 @@ decode_buffer(lzma_coder *coder,
|
||||||
|
|
||||||
|
|
||||||
static lzma_ret
|
static lzma_ret
|
||||||
lz_decode(void *coder_ptr,
|
lz_decode(void *coder_ptr, const lzma_allocator *allocator,
|
||||||
const lzma_allocator *allocator lzma_attribute((__unused__)),
|
|
||||||
const uint8_t *restrict in, size_t *restrict in_pos,
|
const uint8_t *restrict in, size_t *restrict in_pos,
|
||||||
size_t in_size, uint8_t *restrict out,
|
size_t in_size, uint8_t *restrict out,
|
||||||
size_t *restrict out_pos, size_t out_size,
|
size_t *restrict out_pos, size_t out_size,
|
||||||
|
|
Loading…
Reference in a new issue