瀏覽代碼

Silence unused variable warning

SDL_x11dyn.c:123:17: warning: unused variable 'i' [-Wunused-variable]
            int i;
                ^
Brad Smith 3 年之前
父節點
當前提交
371735e95b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/video/x11/SDL_x11dyn.c

+ 2 - 0
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;