瀏覽代碼

X11: Fixed compile warning about unused variable.

Philipp Wiesemann 9 年之前
父節點
當前提交
f6bcfa0175
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/video/x11/SDL_x11video.c

+ 2 - 0
src/video/x11/SDL_x11video.c

@@ -396,7 +396,9 @@ X11_VideoInit(_THIS)
         char *prev_locale = setlocale(LC_ALL, NULL);
         char *prev_locale = setlocale(LC_ALL, NULL);
         char *prev_xmods  = X11_XSetLocaleModifiers(NULL);
         char *prev_xmods  = X11_XSetLocaleModifiers(NULL);
         const char *new_xmods = "";
         const char *new_xmods = "";
+#if defined(HAVE_IBUS_IBUS_H) || defined(HAVE_FCITX_FRONTEND_H)
         const char *env_xmods = SDL_getenv("XMODIFIERS");
         const char *env_xmods = SDL_getenv("XMODIFIERS");
+#endif
         SDL_bool has_dbus_ime_support = SDL_FALSE;
         SDL_bool has_dbus_ime_support = SDL_FALSE;
 
 
         if (prev_locale) {
         if (prev_locale) {