mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 16:20:13 +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>
(cherry picked from commit 7bbbfa6670)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38167>
This commit is contained in:
parent
65eb3aed4b
commit
fb2273df78
2 changed files with 2 additions and 2 deletions
|
|
@ -454,7 +454,7 @@
|
|||
"description": "util: Fix gnu-empty-initializer error",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "17e286529b978de95052ec86874f8f76417780b2",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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