]> granicus.if.org Git - xz/commitdiff
liblzma: Remove incorrect uses of lzma_attribute((__unused__)).
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 24 Jun 2019 19:47:39 +0000 (22:47 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 24 Jun 2019 19:50:36 +0000 (22:50 +0300)
Caught by clang -Wused-but-marked-unused.

src/liblzma/common/alone_decoder.c
src/liblzma/common/alone_encoder.c
src/liblzma/lz/lz_decoder.c

index 77d0a9b1002c9979d40a0377406f7d9ea045cee9..239b230ef19b29f08f5b75db588e90e22623ccde 100644 (file)
@@ -50,8 +50,7 @@ typedef struct {
 
 
 static lzma_ret
-alone_decode(void *coder_ptr,
-               const lzma_allocator *allocator lzma_attribute((__unused__)),
+alone_decode(void *coder_ptr, const lzma_allocator *allocator,
                const uint8_t *restrict in, size_t *restrict in_pos,
                size_t in_size, uint8_t *restrict out,
                size_t *restrict out_pos, size_t out_size,
index 402bebce84e10f8b0a7538a6b344a37ce4662777..c4560d58943f9d3dc5e7f6b72a977ec4fba255de 100644 (file)
@@ -31,8 +31,7 @@ typedef struct {
 
 
 static lzma_ret
-alone_encode(void *coder_ptr,
-               const lzma_allocator *allocator lzma_attribute((__unused__)),
+alone_encode(void *coder_ptr, const lzma_allocator *allocator,
                const uint8_t *restrict in, size_t *restrict in_pos,
                size_t in_size, uint8_t *restrict out,
                size_t *restrict out_pos, size_t out_size,
index 6c9024e29da7cff8f3c44771d26c0391baba2d34..09b574388f59ace9193084737b8619a97709e664 100644 (file)
@@ -131,8 +131,7 @@ decode_buffer(lzma_coder *coder,
 
 
 static lzma_ret
-lz_decode(void *coder_ptr,
-               const lzma_allocator *allocator lzma_attribute((__unused__)),
+lz_decode(void *coder_ptr, const lzma_allocator *allocator,
                const uint8_t *restrict in, size_t *restrict in_pos,
                size_t in_size, uint8_t *restrict out,
                size_t *restrict out_pos, size_t out_size,