aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-23 21:55:22 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-23 21:55:22 +0200
commit48c1b99dc537a27e1ca929d8837e778e5ba32191 (patch)
tree52bc74203b3330f6dbce12ccc753e1120efa5c37 /src/liblzma
parentliblzma: Fix invalid free() after memory allocation failure. (diff)
downloadxz-48c1b99dc537a27e1ca929d8837e778e5ba32191.tar.xz
liblzma: Add lzma_attr_warn_unused_result to lzma_filters_copy().
Diffstat (limited to 'src/liblzma')
-rw-r--r--src/liblzma/api/lzma/filter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liblzma/api/lzma/filter.h b/src/liblzma/api/lzma/filter.h
index 04825c65..5ec9976d 100644
--- a/src/liblzma/api/lzma/filter.h
+++ b/src/liblzma/api/lzma/filter.h
@@ -120,7 +120,8 @@ extern LZMA_API(lzma_bool) lzma_filter_decoder_is_supported(lzma_vli id)
*/
extern LZMA_API(lzma_ret) lzma_filters_copy(
const lzma_filter *src, lzma_filter *dest,
- const lzma_allocator *allocator) lzma_nothrow;
+ const lzma_allocator *allocator)
+ lzma_nothrow lzma_attr_warn_unused_result;
/**