From 59f2a072ca2c7601d7b8b26c95ad5427f14073f6 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 23 Jul 2022 12:52:11 -0700 Subject: [PATCH] libsync: Fix compiler warning ../src/util/libsync.h:134:33: warning: suggest braces around initialization of subobject [-Wmissing-braces] struct sync_merge_data data = {0}; ^ Signed-off-by: Rob Clark Reviewed-by: Chia-I Wu Part-of: --- src/util/libsync.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/libsync.h b/src/util/libsync.h index 248ef96..8ac7657 100644 --- a/src/util/libsync.h +++ b/src/util/libsync.h @@ -131,7 +131,7 @@ static inline int sync_wait(int fd, int timeout) static inline int sync_merge(const char *name, int fd1, int fd2) { - struct sync_merge_data data = {0}; + struct sync_merge_data data = {{0}}; int ret; data.fd2 = fd2; -- 2.7.4