From d48d4385d939182fac4986176ce1c93ed065f447 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 15 Jan 2020 08:47:59 +0100 Subject: [PATCH] (Wayland) Silence warning --- gfx/drivers_context/wayland_ctx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 58c6bac247..e996afd7e7 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -1687,9 +1687,11 @@ static bool gfx_ctx_wl_set_video_mode(void *data, return true; +#if defined(HAVE_EGL) || defined(HAVE_VULKAN) error: gfx_ctx_wl_destroy(data); return false; +#endif } bool input_wl_init(void *data, const char *joypad_name);