Linux: Fixed compile warnings about unused variables.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 15 Oct 2016 20:02:17 +0200
changeset 10544aa304ab47a19
parent 10543 44577414dd07
child 10545 017eb6694a92
Linux: Fixed compile warnings about unused variables.
src/core/linux/SDL_ime.c
     1.1 --- a/src/core/linux/SDL_ime.c	Sat Oct 15 20:01:50 2016 +0200
     1.2 +++ b/src/core/linux/SDL_ime.c	Sat Oct 15 20:02:17 2016 +0200
     1.3 @@ -43,17 +43,16 @@
     1.4  InitIME()
     1.5  {
     1.6      static SDL_bool inited = SDL_FALSE;
     1.7 -    const char *im_module;
     1.8 -    const char *xmodifiers;
     1.9 +#ifdef HAVE_FCITX_FRONTEND_H
    1.10 +    const char *im_module = SDL_getenv("SDL_IM_MODULE");
    1.11 +    const char *xmodifiers = SDL_getenv("XMODIFIERS");
    1.12 +#endif
    1.13  
    1.14      if (inited == SDL_TRUE)
    1.15          return;
    1.16  
    1.17      inited = SDL_TRUE;
    1.18  
    1.19 -    im_module = SDL_getenv("SDL_IM_MODULE");
    1.20 -    xmodifiers = SDL_getenv("XMODIFIERS");
    1.21 -
    1.22      /* See if fcitx IME support is being requested */
    1.23  #ifdef HAVE_FCITX_FRONTEND_H
    1.24      if (!SDL_IME_Init_Real &&