Commit 14e13e13c40ef200d04a5e4f0376fb08851cf3bb

Sam Lantinga 2013-10-17T17:38:55

Fixed compiler warning if dynamic X11 loading isn't enabled.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/video/x11/SDL_x11dyn.c b/src/video/x11/SDL_x11dyn.c
index ab0eafb..f9a2fa6 100644
--- a/src/video/x11/SDL_x11dyn.c
+++ b/src/video/x11/SDL_x11dyn.c
@@ -131,7 +131,9 @@ SDL_DYNX11FN_XGetICValues pXGetICValues = NULL;
 #undef SDL_X11_SYM
 
 
+#ifdef SDL_VIDEO_DRIVER_X11_DYNAMIC
 static int x11_load_refcount = 0;
+#endif
 
 void
 SDL_X11_UnloadSymbols(void)