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

src/ChangeLog
src/xdisp.c

index 5f7cc98..c0e350e 100644 (file)
@@ -5,8 +5,8 @@
        (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
        avoids a gcc -Wuninitialized diagnostic.
        (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
-       Mark variables that gcc -Wuninitialized cannot deduce are never
-       used uninitialized.
+       (note_mouse_highlight): Mark variables that gcc -Wuninitialized
+       does not 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 7d6190e..f7f887f 100644 (file)
@@ -25457,7 +25457,8 @@ note_mouse_highlight (struct frame *f, int x, int y)
            {
              /* The mouse-highlighting, if any, comes from an overlay
                 or text property in the buffer.  */
-             Lisp_Object buffer, cover_string;
+             Lisp_Object buffer IF_LINT (= Qnil);
+             Lisp_Object cover_string IF_LINT (= Qnil);
 
              if (STRINGP (object))
                {