From 4ce7dd6fd5b6be4cb9049e7f58dda04051f877f7 Mon Sep 17 00:00:00 2001 From: pastalian <28638872+pastalian@users.noreply.github.com> Date: Sat, 21 Sep 2024 06:19:24 +0900 Subject: [PATCH] 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 --- gfx/drivers_context/wayland_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index ae4b8ff896..e3241688d7 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -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