Commit 0e086e8f authored by Paul Eggert's avatar Paul Eggert
Browse files

xdisp.c (draw_glyphs):

Mark variables that gcc -Wuninitialized cannot deduce are never
used uninitialized.
parent 70739cbe
......@@ -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.
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment