From 14e13e13c40ef200d04a5e4f0376fb08851cf3bb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 17 Oct 2013 17:38:55 -0700 Subject: [PATCH] Fixed compiler warning if dynamic X11 loading isn't enabled. --- 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 ab0eafb4d..f9a2fa68c 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)