From 371735e95bbeb1bc54020fbb2eade216d381755b Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Tue, 30 Aug 2022 15:45:16 -0400 Subject: [PATCH] Silence unused variable warning SDL_x11dyn.c:123:17: warning: unused variable 'i' [-Wunused-variable] int i; ^ --- src/video/x11/SDL_x11dyn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/x11/SDL_x11dyn.c b/src/video/x11/SDL_x11dyn.c index 4bfef21e3..3c6474a07 100644 --- a/src/video/x11/SDL_x11dyn.c +++ b/src/video/x11/SDL_x11dyn.c @@ -120,7 +120,9 @@ SDL_X11_UnloadSymbols(void) /* Don't actually unload if more than one module is using the libs... */ if (x11_load_refcount > 0) { if (--x11_load_refcount == 0) { +#ifdef SDL_VIDEO_DRIVER_X11_DYNAMIC int i; +#endif /* set all the function pointers to NULL. */ #define SDL_X11_MODULE(modname) SDL_X11_HAVE_##modname = 0;