From ad464817dda7e4bce4366e29d7bbfd0cdb3323c6 Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 19 Nov 2022 01:39:51 -0800 Subject: [PATCH] Fix -Wunused-variable and -Wunused-parameter blame 2304ef28a5 --- src/sdl/i_video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 6bb131777..5e97694ad 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -186,13 +186,15 @@ static void Impl_SetWindowIcon(void); static void Impl_SetSoftwareVsync(int vsync) { - static int oldvsync = 0; #if SDL_VERSION_ATLEAST(2,0,18) + static int oldvsync = 0; if (oldvsync != vsync) { SDL_RenderSetVSync(renderer, vsync); } oldvsync = vsync; +#else + (void)vsync; #endif }