mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 06:10:28 +01:00
util: Fix gnu-empty-initializer error
Fixes the following building error happening with clang:
../src/util/os_file.c:291:29: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer]
struct epoll_event evt = {};
^
1 error generated.
Fixes: 17e28652 ("util: mimic KCMP_FILE via epoll when KCMP is missing")
Cc: "25.3"
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37944>
This commit is contained in:
parent
8d276e0d70
commit
7bbbfa6670
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ os_same_file_description(int fd1, int fd2)
|
|||
if (efd < 0)
|
||||
return -1;
|
||||
|
||||
struct epoll_event evt = {};
|
||||
struct epoll_event evt = {0};
|
||||
/* Get a new file descriptor number for fd1. */
|
||||
int tmp = os_dupfd_cloexec(fd1);
|
||||
/* Add it to evt. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue