Skip to content

Commit

Permalink
Explicitly cast to a pointer in wayland builds (#17019)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pastalian authored Sep 20, 2024
1 parent 17c899f commit 4ce7dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/drivers_context/wayland_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ce7dd6

Please sign in to comment.