From 25c1c6202f78aded6789737a854118fd3ab33cf0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 20 Feb 2016 19:46:35 +0100 Subject: [PATCH] Silence warning --- gfx/video_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 1d1f18f4d7..dca890a87e 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -276,9 +276,11 @@ static bool find_video_driver(void) if (video_driver_ctl(RARCH_DISPLAY_CTL_IS_HW_CONTEXT, NULL)) { + current_video = NULL; struct retro_hw_render_callback *hwr = video_driver_callback(); - current_video = NULL; + + (void)hwr; #if defined(HAVE_VULKAN) if (hwr && hw_render_context_is_vulkan(hwr->context_type))