1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 00:31:01 -08:00

xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Mark variables that

gcc -Wuninitialized cannot deduce are never used uninitialized.
This commit is contained in:
Paul Eggert 2011-03-06 14:04:59 -08:00
parent dba6549815
commit 70739cbeb9
2 changed files with 4 additions and 3 deletions

View 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): Mark variables that gcc -Wuninitialized cannot
deduce are never used uninitialized.
(display_line, BUILD_COMPOSITE_GLYPH_STRING): 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.

View file

@ -21089,7 +21089,7 @@ compute_overhangs_and_x (struct glyph_string *s, int x, int backward_p)
int cmp_id = (row)->glyphs[area][START].u.cmp.id; \
struct composition *cmp = composition_table[cmp_id]; \
XChar2b *char2b; \
struct glyph_string *first_s; \
struct glyph_string *first_s IF_LINT (= NULL); \
int n; \
\
char2b = (XChar2b *) alloca ((sizeof *char2b) * cmp->glyph_len); \