From: Yuuki Harano Date: Wed, 25 Nov 2020 11:40:10 +0000 (+0900) Subject: Fix compilation issue when --enable-checking=glyphs X-Git-Tag: emacs-29.0.90~3759 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=68b8acc405f2f7f7cfca6fe88820dfa13161a3c6;p=emacs.git Fix compilation issue when --enable-checking=glyphs * src/pgtkfns.c (Fx_create_frame): Remove code surrounded by GLYPH_DEBUG. (x_create_tip_frame): Remove code surrounded by GLYPH_DEBUG. --- diff --git a/src/pgtkfns.c b/src/pgtkfns.c index 494cbc72826..e280bb33d2c 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c @@ -1317,11 +1317,6 @@ This function is an internal primitive--use `make-frame' instead. */ ) image_cache_refcount = FRAME_IMAGE_CACHE (f) ? FRAME_IMAGE_CACHE (f)->refcount : 0; -#if 0 -#ifdef GLYPH_DEBUG - dpyinfo_refcount = dpyinfo->reference_count; -#endif /* GLYPH_DEBUG */ -#endif gui_default_parameter (f, parms, Qfont_backend, Qnil, "fontBackend", "FontBackend", RES_TYPE_STRING); @@ -2657,9 +2652,6 @@ x_create_tip_frame (struct pgtk_display_info *dpyinfo, Lisp_Object parms, struct image_cache_refcount = FRAME_IMAGE_CACHE (f) ? FRAME_IMAGE_CACHE (f)->refcount : 0; -#ifdef GLYPH_DEBUG - dpyinfo_refcount = dpyinfo->reference_count; -#endif /* GLYPH_DEBUG */ gui_default_parameter (f, parms, Qfont_backend, Qnil, "fontBackend", "FontBackend", RES_TYPE_STRING); diff --git a/src/pgtkterm.c b/src/pgtkterm.c index ab61283e062..6f2bb2898b2 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -1004,8 +1004,6 @@ x_set_cursor_gc (struct glyph_string *s) PGTK_TRACE ("x_set_cursor_gc: 6. %08lx, %08lx.", xgcv.background, xgcv.foreground); - IF_DEBUG (x_check_font (s->f, s->font)); - s->xgcv = xgcv; } }