mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
1dd5dd9765
commit
59f2a072ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue