From dccd076b927386fb2206d50876517cf0c3be99a6 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 13 May 2026 10:09:49 +0500 Subject: [PATCH] engine: platform: sdl2: cleanup unused variables --- engine/platform/sdl2/s_sdl2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/platform/sdl2/s_sdl2.c b/engine/platform/sdl2/s_sdl2.c index 0bf8f230..f9ec9776 100644 --- a/engine/platform/sdl2/s_sdl2.c +++ b/engine/platform/sdl2/s_sdl2.c @@ -79,7 +79,6 @@ qboolean SNDDMA_Init( void ) { SDL_AudioSpec desired, obtained; int samplecount; - const char *driver = NULL; // Modders often tend to use proprietary crappy solutions // like FMOD to play music, sometimes even with versions outdated by a few decades! @@ -98,7 +97,7 @@ qboolean SNDDMA_Init( void ) // reference SDL audio functions there. It's probably has DirectSound backend, that's // why modders never stumble upon this bug. #if XASH_WIN32 - driver = "directsound"; + const char *driver = "directsound"; if( SDL_getenv( "SDL_AUDIODRIVER" )) driver = NULL; // let SDL2 and user decide