* dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Mar 2011 06:57:40 +0000 (23:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Mar 2011 06:57:40 +0000 (23:57 -0700)
Omit unused local var.

src/ChangeLog
src/dispnew.c

index eb1555d..79b86d5 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * dispnew.c (update_window) [PERIODIC_PREEMPTION_CHECKING]:
+       Omit unused local var.
+
 2011-03-27  Paul Eggert  <eggert@cs.ucla.edu>
 
        * keyboard.c (parse_modifiers_uncached, parse_modifiers):
index a15b5f4..3a78845 100644 (file)
@@ -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);