Explicitly cast to a pointer in wayland builds (#17019)

The build with `--enable-wayland --disable-kms` has a part where an
unsigned long is passed as a void*, but GCC 14 enforces
-Werror=int-conversion, causing the build to fail.
https://gcc.gnu.org/gcc-14/porting_to.html#int-conversion
This commit is contained in:
pastalian 2024-09-21 06:19:24 +09:00 committed by GitHub
parent 17c899fac3
commit 4ce7dd6fd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -407,7 +407,7 @@ static bool gfx_ctx_wl_set_video_mode(void *data,
goto error;
}
if (!egl_create_surface(&wl->egl, (EGLNativeWindowType)wl->win))
if (!egl_create_surface(&wl->egl, (void*)wl->win))
goto error;
egl_set_swap_interval(&wl->egl, wl->egl.interval);
#endif