1
0
鏡像自 https://git.tukaani.org/xz.git synced 2025-06-30 17:36:36 +00:00

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.
This commit is contained in:
Lasse Collin 2022-05-23 19:37:18 +03:00
父節點 5d8f3764ef
當前提交 2ce4f36f17

查看文件

@ -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;