diff options
| author | Paul Eggert | 2011-03-06 14:11:02 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-06 14:11:02 -0800 |
| commit | 0e086e8f7f79c0473a00153ba70c7febab7d0712 (patch) | |
| tree | fa0c58abee4c5b8650c241d18e980de1b4e0308b /src | |
| parent | 70739cbeb98fae41f27fc2e4fc34670c8ec39bb7 (diff) | |
| download | emacs-0e086e8f7f79c0473a00153ba70c7febab7d0712.tar.gz emacs-0e086e8f7f79c0473a00153ba70c7febab7d0712.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 | 5 | ||||
| -rw-r--r-- | src/xdisp.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ff8c5fd027d..5f7cc98ee2a 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, BUILD_COMPOSITE_GLYPH_STRING): Mark variables that | 7 | (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs): |
| 8 | gcc -Wuninitialized cannot deduce are never used uninitialized. | 8 | Mark variables that gcc -Wuninitialized cannot deduce are never |
| 9 | used uninitialized. | ||
| 9 | 10 | ||
| 10 | * 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 |
| 11 | 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 0f8fd3d0477..7d6190ed8ce 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -21293,7 +21293,8 @@ draw_glyphs (struct window *w, int x, struct glyph_row *row, | |||
| 21293 | { | 21293 | { |
| 21294 | struct glyph_string *h, *t; | 21294 | struct glyph_string *h, *t; |
| 21295 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); | 21295 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); |
| 21296 | int mouse_beg_col, mouse_end_col, check_mouse_face = 0; | 21296 | int mouse_beg_col IF_LINT (= 0), mouse_end_col IF_LINT (= 0); |
| 21297 | int check_mouse_face = 0; | ||
| 21297 | int dummy_x = 0; | 21298 | int dummy_x = 0; |
| 21298 | 21299 | ||
| 21299 | /* If mouse highlighting is on, we may need to draw adjacent | 21300 | /* If mouse highlighting is on, we may need to draw adjacent |