From 2b07bcffb0e2b6cef517406cbc979ac14e46cd8e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 8 Mar 2011 23:07:42 -0800 Subject: [PATCH] * xterm.c: Don't declare local "event" unless it's used. --- src/ChangeLog | 1 + src/xterm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index f0c1db2ab73..7f9e68e71e5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -7,6 +7,7 @@ (x_shift_glyphs_for_insert, XTflash, XTring_bell): (x_calc_absolute_position): Now static. (XTread_socket): Don't define label "out" unless it's used. + Don't declare local "event" unless it's used. * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename or move locals to avoid shadowing. diff --git a/src/xterm.c b/src/xterm.c index 4c7fc1b9b1e..f253ed0aa3f 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6991,7 +6991,6 @@ static int XTread_socket (struct terminal *terminal, int expected, struct input_event *hold_quit) { int count = 0; - XEvent event; int event_found = 0; if (interrupt_input_blocked) @@ -7025,6 +7024,7 @@ XTread_socket (struct terminal *terminal, int expected, struct input_event *hold while (XPending (terminal->display_info.x->display)) { int finish; + XEvent event; XNextEvent (terminal->display_info.x->display, &event); -- 2.39.5