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:
parent
dba6549815
commit
70739cbeb9
2 changed files with 4 additions and 3 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue