]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compiler warning on GTK
authorPo Lu <luangruo@yahoo.com>
Wed, 9 Feb 2022 10:51:51 +0000 (18:51 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 9 Feb 2022 10:51:51 +0000 (18:51 +0800)
* src/xterm.c (x_make_frame_visible): Make some fields that are
set but never used conditioned out on GTK.

src/xterm.c

index e6d7d5d133f7f8b6b6814104318094bc3816d030..50525a76df494ee5e21b00e4bcb28d7a2f83973c 100644 (file)
@@ -14485,8 +14485,8 @@ xembed_send_message (struct frame *f, Time t, enum xembed_message msg,
 void
 x_make_frame_visible (struct frame *f)
 {
-  struct x_display_info *dpyinfo;
 #ifndef USE_GTK
+  struct x_display_info *dpyinfo;
   struct x_output *output;
 #endif
 
@@ -14513,7 +14513,10 @@ x_make_frame_visible (struct frame *f)
   block_input ();
 
   gui_set_bitmap_icon (f);
+
+#ifndef USE_GTK
   dpyinfo = FRAME_DISPLAY_INFO (f);
+#endif
 
   if (! FRAME_VISIBLE_P (f))
     {