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 <robdclark@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17816>
This commit is contained in:
Rob Clark
2022-07-23 12:52:11 -07:00
committed by Marge Bot
parent 1dd5dd9765
commit 59f2a072ca

View File

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