From: Paul Eggert Date: Wed, 9 Mar 2011 07:05:07 +0000 (-0800) Subject: * xterm.c (XTread_socket): Don't define label "out" unless it's used. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~605^2^2~26 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7411c6867f74428cf2441cb2b1bd5100185b9a03;p=emacs.git * xterm.c (XTread_socket): Don't define label "out" unless it's used. --- diff --git a/src/ChangeLog b/src/ChangeLog index dd88e961a51..f0c1db2ab73 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -6,6 +6,7 @@ Remove unused functions. (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. * 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 beb215b5680..4c7fc1b9b1e 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -7042,6 +7042,8 @@ XTread_socket (struct terminal *terminal, int expected, struct input_event *hold goto out; } + out:; + #else /* USE_GTK */ /* For GTK we must use the GTK event loop. But XEvents gets passed @@ -7068,8 +7070,6 @@ XTread_socket (struct terminal *terminal, int expected, struct input_event *hold } #endif /* USE_GTK */ - out:; - /* On some systems, an X bug causes Emacs to get no more events when the window is destroyed. Detect that. (1994.) */ if (! event_found)