diff options
| author | Paul Eggert | 2011-03-10 22:06:36 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-10 22:06:36 -0800 |
| commit | 4b1ec8634128e4389f400e948337f2839be44d8f (patch) | |
| tree | db498015a54b6cefb0a6fd27fd840b6992e358cc /src | |
| parent | 500188f4835ff80e19e7b3207160f37f5807aa52 (diff) | |
| download | emacs-4b1ec8634128e4389f400e948337f2839be44d8f.tar.gz emacs-4b1ec8634128e4389f400e948337f2839be44d8f.zip | |
* fringe.c (update_window_fringes): Mark locals as initialized
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/fringe.c | 5 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a1c4b0fd967..280434d0860 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | 2011-03-10 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-11 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap): Now static. | 3 | * fringe.c (update_window_fringes): Mark locals as initialized |
| 4 | (update_window_fringes): Initialize top_row_ends_at_zv_p and | 4 | (Bug#8227). |
| 5 | bot_row_ends_at_zv_p, with a FIXME comment. | 5 | (destroy_fringe_bitmap, init_fringe_bitmap): Now static. |
| 6 | 6 | ||
| 7 | * alloc.c (mark_fringe_data): Move decl from here ... | 7 | * alloc.c (mark_fringe_data): Move decl from here ... |
| 8 | * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here, | 8 | * 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) | |||
| 913 | int bitmap_cache[MAX_BITMAP_CACHE]; | 913 | int bitmap_cache[MAX_BITMAP_CACHE]; |
| 914 | int top_ind_rn, bot_ind_rn; | 914 | int top_ind_rn, bot_ind_rn; |
| 915 | int top_ind_min_y, bot_ind_max_y; | 915 | int top_ind_min_y, bot_ind_max_y; |
| 916 | 916 | int top_row_ends_at_zv_p IF_LINT (= 0), bot_row_ends_at_zv_p IF_LINT (= 0); | |
| 917 | /* FIXME: Do these need to be initialized? If not, please change | ||
| 918 | their "= 0"s to "IF_LINT (= 0)"s. Either way, please explain. */ | ||
| 919 | int top_row_ends_at_zv_p = 0, bot_row_ends_at_zv_p = 0; | ||
| 920 | 917 | ||
| 921 | if (w->pseudo_window_p) | 918 | if (w->pseudo_window_p) |
| 922 | return 0; | 919 | return 0; |