From 82beb984aa4d5009d0535d41f2de41bf2992deb9 Mon Sep 17 00:00:00 2001 From: Alexander Kuleshov Date: Thu, 6 Jul 2017 17:39:51 +0600 Subject: [PATCH] use pD directives for ptrdiff_t values to get rid from warnings * src/xdisp.c: use pD directives for ptrdiff_t values instead of pI --- src/xdisp.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 8bc5d81..95d3784 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -19083,7 +19083,7 @@ dump_glyph (struct glyph_row *row, struct glyph *glyph, int area) || glyph->type == GLYPHLESS_GLYPH) { fprintf (stderr, - " %5"pD"d %c %9"pI"d %c %3d 0x%06x %c %4d %1.1d%1.1d\n", + " %5"pD"d %c %9"pD"d %c %3d 0x%06x %c %4d %1.1d%1.1d\n", glyph - row->glyphs[TEXT_AREA], (glyph->type == CHAR_GLYPH ? 'C' @@ -19108,7 +19108,7 @@ dump_glyph (struct glyph_row *row, struct glyph *glyph, int area) else if (glyph->type == STRETCH_GLYPH) { fprintf (stderr, - " %5"pD"d %c %9"pI"d %c %3d 0x%06x %c %4d %1.1d%1.1d\n", + " %5"pD"d %c %9"pD"d %c %3d 0x%06x %c %4d %1.1d%1.1d\n", glyph - row->glyphs[TEXT_AREA], 'S', glyph->charpos, @@ -19129,7 +19129,7 @@ dump_glyph (struct glyph_row *row, struct glyph *glyph, int area) else if (glyph->type == IMAGE_GLYPH) { fprintf (stderr, - " %5"pD"d %c %9"pI"d %c %3d 0x%06x %c %4d %1.1d%1.1d\n", + " %5"pD"d %c %9"pD"d %c %3d 0x%06x %c %4d %1.1d%1.1d\n", glyph - row->glyphs[TEXT_AREA], 'I', glyph->charpos, @@ -19150,7 +19150,7 @@ dump_glyph (struct glyph_row *row, struct glyph *glyph, int area) else if (glyph->type == COMPOSITE_GLYPH) { fprintf (stderr, - " %5"pD"d %c %9"pI"d %c %3d 0x%06x", + " %5"pD"d %c %9"pD"d %c %3d 0x%06x", glyph - row->glyphs[TEXT_AREA], '+', glyph->charpos, @@ -19211,7 +19211,7 @@ dump_glyph_row (struct glyph_row *row, int vpos, int glyphs) fprintf (stderr, "Row Start End Used oE><\\CTZFesm X Y W H V A P\n"); fprintf (stderr, "==============================================================================\n"); - fprintf (stderr, "%3d %9"pI"d %9"pI"d %4d %1.1d%1.1d%1.1d%1.1d\ + fprintf (stderr, "%3d %9"pD"d %9"pD"d %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 %4d %4d %4d %4d %4d %4d %4d\n", vpos, MATRIX_ROW_START_CHARPOS (row), @@ -19240,7 +19240,7 @@ dump_glyph_row (struct glyph_row *row, int vpos, int glyphs) fprintf (stderr, " %9"pD"d %9"pD"d\t%5d\n", row->start.overlay_string_index, row->end.overlay_string_index, row->continuation_lines_width); - fprintf (stderr, " %9"pI"d %9"pI"d\n", + fprintf (stderr, " %9"pD"d %9"pD"d\n", CHARPOS (row->start.string_pos), CHARPOS (row->end.string_pos)); fprintf (stderr, " %9d %9d\n", row->start.dpvec_index, @@ -19317,7 +19317,7 @@ with numeric argument, its value is passed as the GLYPHS flag. */) struct window *w = XWINDOW (selected_window); struct buffer *buffer = XBUFFER (w->contents); - fprintf (stderr, "PT = %"pI"d, BEGV = %"pI"d. ZV = %"pI"d\n", + fprintf (stderr, "PT = %"pD"d, BEGV = %"pD"d. ZV = %"pD"d\n", BUF_PT (buffer), BUF_BEGV (buffer), BUF_ZV (buffer)); fprintf (stderr, "Cursor x = %d, y = %d, hpos = %d, vpos = %d\n", w->cursor.x, w->cursor.y, w->cursor.hpos, w->cursor.vpos); -- 2.9.0.GIT