From: Paul Eggert Date: Fri, 11 Mar 2011 06:06:36 +0000 (-0800) Subject: * fringe.c (update_window_fringes): Mark locals as initialized X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~605^2^2~2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4b1ec8634128e4389f400e948337f2839be44d8f;p=emacs.git * fringe.c (update_window_fringes): Mark locals as initialized --- diff --git a/src/ChangeLog b/src/ChangeLog index a1c4b0fd967..280434d0860 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,8 +1,8 @@ -2011-03-10 Paul Eggert +2011-03-11 Paul Eggert - * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap): Now static. - (update_window_fringes): Initialize top_row_ends_at_zv_p and - bot_row_ends_at_zv_p, with a FIXME comment. + * fringe.c (update_window_fringes): Mark locals as initialized + (Bug#8227). + (destroy_fringe_bitmap, init_fringe_bitmap): Now static. * alloc.c (mark_fringe_data): Move decl from here ... * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here, diff --git a/src/fringe.c b/src/fringe.c index a980bdf146f..8e2f4eb8d24 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -913,10 +913,7 @@ update_window_fringes (struct window *w, int keep_current_p) int bitmap_cache[MAX_BITMAP_CACHE]; int top_ind_rn, bot_ind_rn; int top_ind_min_y, bot_ind_max_y; - - /* FIXME: Do these need to be initialized? If not, please change - their "= 0"s to "IF_LINT (= 0)"s. Either way, please explain. */ - int top_row_ends_at_zv_p = 0, bot_row_ends_at_zv_p = 0; + int top_row_ends_at_zv_p IF_LINT (= 0), bot_row_ends_at_zv_p IF_LINT (= 0); if (w->pseudo_window_p) return 0;