Commit 099e8a685b3cde6c1655a700d30f50055ca27a2b

Philipp Wiesemann 2016-10-15T20:02:17

Linux: Fixed compile warnings about unused variables.

diff --git a/src/core/linux/SDL_ime.c b/src/core/linux/SDL_ime.c
index ee34121..049bd6e 100644
--- a/src/core/linux/SDL_ime.c
+++ b/src/core/linux/SDL_ime.c
@@ -43,17 +43,16 @@ static void
 InitIME()
 {
     static SDL_bool inited = SDL_FALSE;
-    const char *im_module;
-    const char *xmodifiers;
+#ifdef HAVE_FCITX_FRONTEND_H
+    const char *im_module = SDL_getenv("SDL_IM_MODULE");
+    const char *xmodifiers = SDL_getenv("XMODIFIERS");
+#endif
 
     if (inited == SDL_TRUE)
         return;
 
     inited = SDL_TRUE;
 
-    im_module = SDL_getenv("SDL_IM_MODULE");
-    xmodifiers = SDL_getenv("XMODIFIERS");
-
     /* See if fcitx IME support is being requested */
 #ifdef HAVE_FCITX_FRONTEND_H
     if (!SDL_IME_Init_Real &&