diff options
| author | Paul Eggert | 2011-03-06 14:22:56 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-06 14:22:56 -0800 |
| commit | 44a3a108430ef79370ad2957a5d71d4cd040962b (patch) | |
| tree | b4f9a5c5c872a569f4939cfa2f3032c77bc3a2d8 /src | |
| parent | 0e086e8f7f79c0473a00153ba70c7febab7d0712 (diff) | |
| download | emacs-44a3a108430ef79370ad2957a5d71d4cd040962b.tar.gz emacs-44a3a108430ef79370ad2957a5d71d4cd040962b.zip | |
xdisp.c (draw_glyphs):
Mark variables that gcc -Wuninitialized cannot deduce are never
used uninitialized.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 3 |
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 | { |