mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
liblzma: Silence warnings from clang -Wconditional-uninitialized.
This is similar to 2ce4f36f17
.
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.
This commit is contained in:
parent
f900dd937f
commit
2ca95b7cfe
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue