From: Paul Eggert Date: Sat, 16 Apr 2011 22:48:31 +0000 (-0700) Subject: * xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512). X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~268^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=399c71d323b8beef139437311c78440d0033c652;p=emacs.git * xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512). --- diff --git a/src/ChangeLog b/src/ChangeLog index 52a48a87e80..ded7da730fe 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -35,8 +35,7 @@ * xfns.c (Fx_file_dialog): Rename local to avoid shadowing. - * xdisp.c (x_produce_glyphs): Avoid possibly-uninitialized - var (Bug#8512). + * xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512). * xfns.c (x_real_positions): Mark locals as initialized. diff --git a/src/xdisp.c b/src/xdisp.c index e7e8d621a80..3c75a63f4e0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -22712,7 +22712,7 @@ x_produce_glyphs (struct it *it) int lbearing, rbearing; int i, width, ascent, descent; int left_padded = 0, right_padded = 0; - int c = 0; /* FIXME: Is 0 right here, when cmp->glyph_len == 0? */ + int c IF_LINT (= 0); /* cmp->glyph_len can't be zero; see Bug#8512 */ XChar2b char2b; struct font_metrics *pcm; int font_not_found_p;