From: Paul Eggert Date: Tue, 29 Mar 2011 06:57:40 +0000 (-0700) Subject: * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]: X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~460^2~6 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0bc329278f23e457aac9a6b078f5cdbd80aa28d9;p=emacs.git * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]: Omit unused local var. --- diff --git a/src/ChangeLog b/src/ChangeLog index eb1555db6fb..79b86d561af 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-03-29 Paul Eggert + + * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]: + Omit unused local var. + 2011-03-27 Paul Eggert * keyboard.c (parse_modifiers_uncached, parse_modifiers): diff --git a/src/dispnew.c b/src/dispnew.c index a15b5f45e60..3a78845fa56 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -3590,7 +3590,10 @@ update_window (struct window *w, int force_p) struct glyph_row *row, *end; struct glyph_row *mode_line_row; struct glyph_row *header_line_row; - int yb, changed_p = 0, mouse_face_overwritten_p = 0, n_updated; + int yb, changed_p = 0, mouse_face_overwritten_p = 0; +#if ! PERIODIC_PREEMPTION_CHECKING + int n_updated = 0; +#endif rif->update_window_begin_hook (w); yb = window_text_bottom_y (w); @@ -3643,7 +3646,7 @@ update_window (struct window *w, int force_p) } /* Update the rest of the lines. */ - for (n_updated = 0; row < end && (force_p || !input_pending); ++row) + for (; row < end && (force_p || !input_pending); ++row) if (row->enabled_p) { int vpos = MATRIX_ROW_VPOS (row, desired_matrix);