From 07ae30d8f24ce46dbb7c2fbfa02002c1b4c2b6b7 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 1 May 2022 09:44:46 +0800 Subject: [PATCH] Also fix some compiler warnings in xterm.c that didn't show up * src/xterm.c (x_dnd_begin_drag_and_drop): Don't define unused variable on GTK builds. --- src/xterm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index bb50b35c2df..3dd8f320ba8 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9778,7 +9778,9 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction, #ifdef HAVE_XKB XkbStateRec keyboard_state; #endif +#ifndef USE_GTK struct x_display_info *event_display; +#endif if (!FRAME_VISIBLE_P (f)) { -- 2.39.2