]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix minor problem found by static checking.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Sep 2011 09:01:39 +0000 (02:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 18 Sep 2011 09:01:39 +0000 (02:01 -0700)
* xdisp.c (reseat_at_next_visible_line_start): Mark locals as
initialized, to pacify gcc -Wuninitialized.

src/ChangeLog
src/xdisp.c

index 282275ffa06110acec16f2b39a9c6acffb8ed887..5f4b3a9e7a7c729b32aca91570657b648bd5a903 100644 (file)
@@ -1,5 +1,9 @@
 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
 
+       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.
index f889815fa1e929cd43b4ad401c21f2820eba6b04..fbf30092ca175372656d46b7d15a266c8c4571d2 100644 (file)
@@ -5722,9 +5722,10 @@ reseat_at_next_visible_line_start (struct it *it, int on_newline_p)
 {
   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);