From 7ead127a6694c10caff2ed89f876c4b154828c68 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 9 Feb 2022 18:51:51 +0800 Subject: [PATCH] Fix compiler warning on GTK * src/xterm.c (x_make_frame_visible): Make some fields that are set but never used conditioned out on GTK. --- src/xterm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index e6d7d5d133f..50525a76df4 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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)) { -- 2.39.5