xdisp.c (draw_glyphs):
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Mar 2011 22:11:02 +0000 (14:11 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Mar 2011 22:11:02 +0000 (14:11 -0800)
Mark variables that gcc -Wuninitialized cannot deduce are never
used uninitialized.

src/ChangeLog
src/xdisp.c

index ff8c5fd..5f7cc98 100644 (file)
@@ -4,8 +4,9 @@
        Add a FIXME comment, since the code still doesn't look right.
        (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
        avoids a gcc -Wuninitialized diagnostic.
-       (display_line, BUILD_COMPOSITE_GLYPH_STRING): Mark variables that
-       gcc -Wuninitialized cannot deduce are never used uninitialized.
+       (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
+       Mark variables that gcc -Wuninitialized cannot deduce are never
+       used uninitialized.
 
        * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c
        which in turn is copied from coreutils.
index 0f8fd3d..7d6190e 100644 (file)
@@ -21293,7 +21293,8 @@ draw_glyphs (struct window *w, int x, struct glyph_row *row,
     {
       struct glyph_string *h, *t;
       Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f);
-      int mouse_beg_col, mouse_end_col, check_mouse_face = 0;
+      int mouse_beg_col IF_LINT (= 0), mouse_end_col IF_LINT (= 0);
+      int check_mouse_face = 0;
       int dummy_x = 0;
 
       /* If mouse highlighting is on, we may need to draw adjacent