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 }