diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-12 03:19:59 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-03-11 21:38:31 +0200 |
commit | 2ca95b7cfea589fa7c79c38b99deafc44d851803 (patch) | |
tree | d09423780731096a40d311763c0e44bfdd36c198 /src | |
parent | Fix warnings from clang -Wdocumentation. (diff) | |
download | xz-2ca95b7cfea589fa7c79c38b99deafc44d851803.tar.xz |
liblzma: Silence warnings from clang -Wconditional-uninitialized.
This is similar to 2ce4f36f179a81d0c6e182a409f363df759d1ad0.
The actual initialization of the variables is done inside
mythread_sync() macro. Clang doesn't seem to see that
the initialization code inside the macro is always executed.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/common/stream_encoder_mt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/common/stream_encoder_mt.c b/src/liblzma/common/stream_encoder_mt.c index 6dc10c3a..573a13b5 100644 --- a/src/liblzma/common/stream_encoder_mt.c +++ b/src/liblzma/common/stream_encoder_mt.c @@ -598,7 +598,7 @@ stream_encode_in(lzma_stream_coder *coder, const lzma_allocator *allocator, } if (block_error) { - lzma_ret ret; + lzma_ret ret = LZMA_OK; // Init to silence a warning. mythread_sync(coder->mutex) { ret = coder->thread_error; |