diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 282275ffa06..5f4b3a9e7a7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-09-18 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-09-18 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Fix minor problem found by static checking. | ||
| 4 | * xdisp.c (reseat_at_next_visible_line_start): Mark locals as | ||
| 5 | initialized, to pacify gcc -Wuninitialized. | ||
| 6 | |||
| 3 | * fileio.c: Report proper errno when syscall falls. | 7 | * fileio.c: Report proper errno when syscall falls. |
| 4 | (Finsert_file_contents): Save and restore errno, | 8 | (Finsert_file_contents): Save and restore errno, |
| 5 | so that report_file_error outputs the correct diagnostic. | 9 | so that report_file_error outputs the correct diagnostic. |
diff --git a/src/xdisp.c b/src/xdisp.c index f889815fa1e..fbf30092ca1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -5722,9 +5722,10 @@ reseat_at_next_visible_line_start (struct it *it, int on_newline_p) | |||
| 5722 | { | 5722 | { |
| 5723 | int newline_found_p, skipped_p = 0; | 5723 | int newline_found_p, skipped_p = 0; |
| 5724 | struct bidi_it bidi_it_prev; | 5724 | struct bidi_it bidi_it_prev; |
| 5725 | int new_paragraph, first_elt, disp_prop; | 5725 | int new_paragraph IF_LINT (= 0), first_elt IF_LINT (= 0); |
| 5726 | EMACS_INT paragraph_end, disp_pos; | 5726 | int disp_prop IF_LINT (= 0); |
| 5727 | bidi_dir_t paragraph_dir; | 5727 | EMACS_INT paragraph_end IF_LINT (= 0), disp_pos IF_LINT (= 0); |
| 5728 | bidi_dir_t paragraph_dir IF_LINT (= 0); | ||
| 5728 | 5729 | ||
| 5729 | newline_found_p = forward_to_next_line_start (it, &skipped_p, &bidi_it_prev); | 5730 | newline_found_p = forward_to_next_line_start (it, &skipped_p, &bidi_it_prev); |
| 5730 | 5731 | ||