Browse Source

liblzma: Silence a warning.

The actual initialization is done via mythread_sync and seems
that GCC doesn't necessarily see that it gets initialized there.
v5.4
Lasse Collin 2 years ago
parent
commit
2ce4f36f17
  1. 2
      src/liblzma/common/stream_decoder_mt.c

2
src/liblzma/common/stream_decoder_mt.c

@ -1336,7 +1336,7 @@ stream_decode_mt(void *coder_ptr, const lzma_allocator *allocator,
// more in cache).
uint64_t mem_in_use;
uint64_t mem_cached;
struct worker_thread *thr;
struct worker_thread *thr = NULL; // Init to silence warning.
mythread_sync(coder->mutex) {
mem_in_use = coder->mem_in_use;

Loading…
Cancel
Save