aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-06 14:04:59 -0800
committerPaul Eggert2011-03-06 14:04:59 -0800
commit70739cbeb98fae41f27fc2e4fc34670c8ec39bb7 (patch)
treecc808294cf09ac2433663df125345da12892e159 /src
parentdba6549815e211c820a249cbfe857a92c7418896 (diff)
downloademacs-70739cbeb98fae41f27fc2e4fc34670c8ec39bb7.tar.gz
emacs-70739cbeb98fae41f27fc2e4fc34670c8ec39bb7.zip
xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Mark variables that
gcc -Wuninitialized cannot deduce are never used uninitialized.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 23bf646f742..ff8c5fd027d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -4,8 +4,9 @@
4 Add a FIXME comment, since the code still doesn't look right. 4 Add a FIXME comment, since the code still doesn't look right.
5 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this 5 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
6 avoids a gcc -Wuninitialized diagnostic. 6 avoids a gcc -Wuninitialized diagnostic.
7 (display_line): Mark variables that gcc -Wuninitialized cannot 7 (display_line, BUILD_COMPOSITE_GLYPH_STRING): Mark variables that
8 deduce are never used uninitialized. 8 gcc -Wuninitialized cannot deduce are never used uninitialized.
9
9 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c 10 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c
10 which in turn is copied from coreutils. 11 which in turn is copied from coreutils.
11 12
diff --git a/src/xdisp.c b/src/xdisp.c
index 180c65d18ed..0f8fd3d0477 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -21089,7 +21089,7 @@ compute_overhangs_and_x (struct glyph_string *s, int x, int backward_p)
21089 int cmp_id = (row)->glyphs[area][START].u.cmp.id; \ 21089 int cmp_id = (row)->glyphs[area][START].u.cmp.id; \
21090 struct composition *cmp = composition_table[cmp_id]; \ 21090 struct composition *cmp = composition_table[cmp_id]; \
21091 XChar2b *char2b; \ 21091 XChar2b *char2b; \
21092 struct glyph_string *first_s; \ 21092 struct glyph_string *first_s IF_LINT (= NULL); \
21093 int n; \ 21093 int n; \
21094 \ 21094 \
21095 char2b = (XChar2b *) alloca ((sizeof *char2b) * cmp->glyph_len); \ 21095 char2b = (XChar2b *) alloca ((sizeof *char2b) * cmp->glyph_len); \