]> code.delx.au - gnu-emacs/commitdiff
Fix the build with --enable-checking=glyphs
authorEli Zaretskii <eliz@gnu.org>
Fri, 22 Jan 2016 21:14:01 +0000 (23:14 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 22 Jan 2016 21:14:01 +0000 (23:14 +0200)
* src/xdisp.c (dump_glyph): Don't refer to glyph->u.xwidget in a
build without xwidget support.

src/xdisp.c

index bba475f8938f9656e4066c77bdce2da74e0f4db1..157fa729fcfe3b12ce2ecaaecd46217dbcade661 100644 (file)
@@ -18828,7 +18828,11 @@ dump_glyph (struct glyph_row *row, struct glyph *glyph, int area)
   else if (glyph->type == XWIDGET_GLYPH)
     {
       fprintf (stderr,
+#ifdef HAVE_XWIDGETS
               "  %5d %4c %6d %c %3d 0x%05x %c %4d %1.1d%1.1d\n",
+#else
+              "  %5d %4c %6d %c %3d %c %4d %1.1d%1.1d\n",
+#endif
               glyph - row->glyphs[TEXT_AREA],
               'X',
               glyph->charpos,
@@ -18838,7 +18842,9 @@ dump_glyph (struct glyph_row *row, struct glyph *glyph, int area)
                   ? 'S'
                   : '-')),
               glyph->pixel_width,
+#ifdef HAVE_XWIDGETS
               glyph->u.xwidget,
+#endif
               '.',
               glyph->face_id,
               glyph->left_box_line_p,