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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user