summaryrefslogtreecommitdiffstats
path: root/src/gui_xim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_xim.c')
-rw-r--r--src/gui_xim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui_xim.c b/src/gui_xim.c
index 2dd6fd9159..2a12412dab 100644
--- a/src/gui_xim.c
+++ b/src/gui_xim.c
@@ -31,7 +31,9 @@
* in the "xim.log" file.
*/
// #define XIM_DEBUG
-#ifdef XIM_DEBUG
+#if defined(XIM_DEBUG) && defined(FEAT_GUI_GTK)
+static void xim_log(char *s, ...) ATTRIBUTE_FORMAT_PRINTF(1, 2);
+
static void
xim_log(char *s, ...)
{