aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-03-06 14:22:56 -0800
committerPaul Eggert2011-03-06 14:22:56 -0800
commit44a3a108430ef79370ad2957a5d71d4cd040962b (patch)
treeb4f9a5c5c872a569f4939cfa2f3032c77bc3a2d8
parent0e086e8f7f79c0473a00153ba70c7febab7d0712 (diff)
downloademacs-44a3a108430ef79370ad2957a5d71d4cd040962b.tar.gz
emacs-44a3a108430ef79370ad2957a5d71d4cd040962b.zip
xdisp.c (draw_glyphs):
Mark variables that gcc -Wuninitialized cannot deduce are never used uninitialized.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xdisp.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5f7cc98ee2a..c0e350e45f9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,8 +5,8 @@
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, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs): 7 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
8 Mark variables that gcc -Wuninitialized cannot deduce are never 8 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
9 used uninitialized. 9 does not deduce are never used uninitialized.
10 10
11 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c 11 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c
12 which in turn is copied from coreutils. 12 which in turn is copied from coreutils.
diff --git a/src/xdisp.c b/src/xdisp.c
index 7d6190ed8ce..f7f887f7850 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -25457,7 +25457,8 @@ note_mouse_highlight (struct frame *f, int x, int y)
25457 { 25457 {
25458 /* The mouse-highlighting, if any, comes from an overlay 25458 /* The mouse-highlighting, if any, comes from an overlay
25459 or text property in the buffer. */ 25459 or text property in the buffer. */
25460 Lisp_Object buffer, cover_string; 25460 Lisp_Object buffer IF_LINT (= Qnil);
25461 Lisp_Object cover_string IF_LINT (= Qnil);
25461 25462
25462 if (STRINGP (object)) 25463 if (STRINGP (object))
25463 { 25464 {