SDL-1.2: SDL_x11dyn.c: fixed -Wunused warnings when x11-shared is disabled.

From 4571c4c9ecbcdd179b5b938414a4ecc21042bfb4 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 10 May 2024 20:21:10 +0300
Subject: [PATCH] SDL_x11dyn.c: fixed -Wunused warnings when x11-shared is
 disabled.

---
 src/video/x11/SDL_x11dyn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/video/x11/SDL_x11dyn.c b/src/video/x11/SDL_x11dyn.c
index 7058addfa..f9635b204 100644
--- a/src/video/x11/SDL_x11dyn.c
+++ b/src/video/x11/SDL_x11dyn.c
@@ -111,7 +111,7 @@ char *(*pXGetICValues)(XIC, ...) = NULL;
 #undef SDL_X11_MODULE
 #undef SDL_X11_SYM
 
-
+#ifdef SDL_VIDEO_DRIVER_X11_DYNAMIC
 static void *SDL_XGetRequest_workaround(Display* dpy, CARD8 type, size_t len)
 {
 	xReq *req;
@@ -128,6 +128,7 @@ static void *SDL_XGetRequest_workaround(Display* dpy, CARD8 type, size_t len)
 }
 
 static int x11_load_refcount = 0;
+#endif
 
 void SDL_X11_UnloadSymbols(void)
 {