From f6bcfa017545d5837b73d749e353e1f8bf08464e Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 12 Oct 2016 23:38:31 +0200 Subject: [PATCH] X11: Fixed compile warning about unused variable. --- src/video/x11/SDL_x11video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/x11/SDL_x11video.c b/src/video/x11/SDL_x11video.c index e658ac0f4ec26..38b34de342188 100644 --- a/src/video/x11/SDL_x11video.c +++ b/src/video/x11/SDL_x11video.c @@ -396,7 +396,9 @@ X11_VideoInit(_THIS) char *prev_locale = setlocale(LC_ALL, NULL); char *prev_xmods = X11_XSetLocaleModifiers(NULL); const char *new_xmods = ""; +#if defined(HAVE_IBUS_IBUS_H) || defined(HAVE_FCITX_FRONTEND_H) const char *env_xmods = SDL_getenv("XMODIFIERS"); +#endif SDL_bool has_dbus_ime_support = SDL_FALSE; if (prev_locale) {