[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r105817: Fix minor problem found by s
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r105817: Fix minor problem found by static checking. |
Date: |
Sun, 18 Sep 2011 02:01:39 -0700 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 105817
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2011-09-18 02:01:39 -0700
message:
Fix minor problem found by static checking.
* xdisp.c (reseat_at_next_visible_line_start): Mark locals as
initialized, to pacify gcc -Wuninitialized.
modified:
src/ChangeLog
src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-09-18 08:34:09 +0000
+++ b/src/ChangeLog 2011-09-18 09:01:39 +0000
@@ -1,5 +1,9 @@
2011-09-18 Paul Eggert <address@hidden>
+ Fix minor problem found by static checking.
+ * xdisp.c (reseat_at_next_visible_line_start): Mark locals as
+ initialized, to pacify gcc -Wuninitialized.
+
* fileio.c: Report proper errno when syscall falls.
(Finsert_file_contents): Save and restore errno,
so that report_file_error outputs the correct diagnostic.
=== modified file 'src/xdisp.c'
--- a/src/xdisp.c 2011-09-18 07:36:10 +0000
+++ b/src/xdisp.c 2011-09-18 09:01:39 +0000
@@ -5722,9 +5722,10 @@
{
int newline_found_p, skipped_p = 0;
struct bidi_it bidi_it_prev;
- int new_paragraph, first_elt, disp_prop;
- EMACS_INT paragraph_end, disp_pos;
- bidi_dir_t paragraph_dir;
+ int new_paragraph IF_LINT (= 0), first_elt IF_LINT (= 0);
+ int disp_prop IF_LINT (= 0);
+ EMACS_INT paragraph_end IF_LINT (= 0), disp_pos IF_LINT (= 0);
+ bidi_dir_t paragraph_dir IF_LINT (= 0);
newline_found_p = forward_to_next_line_start (it, &skipped_p, &bidi_it_prev);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r105817: Fix minor problem found by static checking.,
Paul Eggert <=