From: Eli Zaretskii Date: Mon, 17 Dec 2018 17:45:06 +0000 (+0200) Subject: Avoid compilation warning in ftfont.c X-Git-Tag: emacs-27.0.90~2671^2~43 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ea9fbe34bce795450e0f4200078649dcf1d3f8c;p=emacs.git Avoid compilation warning in ftfont.c * src/ftfont.c (ftfont_shape_by_hb): Compile only if HAVE_LIBOTF is defined. (Bug#33771) --- diff --git a/src/ftfont.c b/src/ftfont.c index bbdc936ffd1..824a005df1b 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -2815,6 +2815,7 @@ get_hb_unicode_funcs (void) return funcs; } +#ifdef HAVE_LIBOTF static Lisp_Object ftfont_shape_by_hb (Lisp_Object lgstring, FT_Face ft_face, hb_font_t *hb_font, FT_Matrix *matrix) @@ -2929,6 +2930,7 @@ done: return make_fixnum (glyph_len); } +#endif /* HAVE_LIBOTF */ #endif /* HAVE_HARFBUZZ */ #if defined HAVE_LIBOTF && (defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ)