]> git.eshelyaron.com Git - emacs.git/commitdiff
Also fix some compiler warnings in xterm.c that didn't show up
authorPo Lu <luangruo@yahoo.com>
Sun, 1 May 2022 01:44:46 +0000 (09:44 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 1 May 2022 01:45:20 +0000 (09:45 +0800)
* src/xterm.c (x_dnd_begin_drag_and_drop): Don't define unused
variable on GTK builds.

src/xterm.c

index bb50b35c2df8badaa54101bc70b894a2b99ca554..3dd8f320ba866cbb22eb7a43493e84cdef5e9e6c 100644 (file)
@@ -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))
     {