]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Remove non-portable empty initializer.
authorJia Tan <jiat0218@gmail.com>
Sat, 8 Jul 2023 13:24:19 +0000 (21:24 +0800)
committerJia Tan <jiat0218@gmail.com>
Sat, 8 Jul 2023 13:24:19 +0000 (21:24 +0800)
Commit 78704f36e74205857c898a351c757719a6c8b666 added an empty
initializer {} to prevent a warning. The empty initializer is a GNU
extension and results in a build failure on MSVC. The -wpedantic flag
warns about empty initializers.

src/liblzma/common/stream_encoder_mt.c

index a8336d888fef1bf33186feb1a4ae4ac03c1c55c9..64de526b6a1731087d545002a40566715136603f 100644 (file)
@@ -743,7 +743,7 @@ stream_encode_mt(void *coder_ptr, const lzma_allocator *allocator,
 
                // These are for wait_for_work().
                bool has_blocked = false;
-               mythread_condtime wait_abs = {};
+               mythread_condtime wait_abs = { 0 };
 
                while (true) {
                        mythread_sync(coder->mutex) {