From b56b37cde66dea02df30938e82100f09c40e5cd0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 21 Jun 2014 17:25:59 -0700 Subject: [PATCH] Fixed warning when building without ibus --- src/video/x11/SDL_x11events.c | 2 ++ src/video/x11/SDL_x11video.h | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index d23b609ba..302b64b87 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -571,7 +571,9 @@ X11_DispatchEvent(_THIS) KeySym keysym = NoSymbol; char text[SDL_TEXTINPUTEVENT_TEXT_SIZE]; Status status = 0; +#ifdef SDL_USE_IBUS Bool handled = False; +#endif #ifdef DEBUG_XEVENTS printf("window %p: KeyPress (X11 keycode = 0x%X)\n", data, xevent.xkey.keycode); diff --git a/src/video/x11/SDL_x11video.h b/src/video/x11/SDL_x11video.h index 3c92b5e27..f076ccec1 100644 --- a/src/video/x11/SDL_x11video.h +++ b/src/video/x11/SDL_x11video.h @@ -53,13 +53,8 @@ #include #endif -#ifdef HAVE_DBUS_DBUS_H #include "../../core/linux/SDL_dbus.h" -#endif - -#ifdef HAVE_IBUS_IBUS_H #include "../../core/linux/SDL_ibus.h" -#endif #include "SDL_x11dyn.h"