From 7f2cc93cf520031180b08470eba5161dc45972f8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 13 Oct 2021 21:44:40 +0200 Subject: [PATCH] Silence warning --- gfx/video_driver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 2b2f0f619e..f4c5572d7c 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -1761,7 +1761,9 @@ enum retro_pixel_format video_driver_get_pixel_format(void) void video_driver_lock_new(void) { +#ifdef HAVE_THREADS video_driver_state_t *video_st = &video_driver_st; +#endif VIDEO_DRIVER_LOCK_FREE(video_st); #ifdef HAVE_THREADS if (!video_st->display_lock)