diff options
| author | Gerd Moellmann <gerd@gnu.org> | 2000-09-08 14:19:11 +0000 |
|---|---|---|
| committer | Gerd Moellmann <gerd@gnu.org> | 2000-09-08 14:19:11 +0000 |
| commit | ae26e27d7d6b448e3b78f5f92d5869ac9ca8ee0d (patch) | |
| tree | 09caabf07b4b1f7cbc0347e0ed0663a14ddf2f1c | |
| parent | 423193c55298af7adee7999ecfb9c8ef54572afb (diff) | |
| download | emacs-ae26e27d7d6b448e3b78f5f92d5869ac9ca8ee0d.tar.gz | |
(dump_glyph_row): Fix printf format string.
(display_line, move_it_in_display_line_to): Avoid compiler
warnings.
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 9d444c3ad6d..6a8965b3554 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4278,7 +4278,7 @@ move_it_in_display_line_to (it, to_charpos, to_x, op) while (1) { - int x, i, ascent, descent; + int x, i, ascent = 0, descent = 0; /* Stop when ZV or TO_CHARPOS reached. */ if (!get_next_display_element (it) @@ -10913,8 +10913,8 @@ dump_glyph_row (matrix, vpos, with_glyphs_p) fprintf (stderr, "Row Start End Used oEI><O\\CTZFes X Y W H V A P\n"); fprintf (stderr, "=======================================================================\n"); - fprintf (stderr, "%3d %5d %5d %4d %1.1d%1.1d%1.1d%1.1d%1.1d%1.1d%1 \ -1d%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d %4d %4d %4d %4d %4d %4d %4d\n", + fprintf (stderr, "%3d %5d %5d %4d %1.1d%1.1d%1.1d%1.1d%1.1d%1.1d\ +%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d%1.1d %4d %4d %4d %4d %4d %4d %4d\n", row - matrix->rows, MATRIX_ROW_START_CHARPOS (row), MATRIX_ROW_END_CHARPOS (row), @@ -11579,7 +11579,7 @@ display_line (it) { int n_glyphs_before, hpos_before, x_before; int x, i, nglyphs; - int ascent, descent, phys_ascent, phys_descent; + int ascent = 0, descent = 0, phys_ascent = 0, phys_descent = 0; /* Retrieve the next thing to display. Value is zero if end of buffer reached. */ |
