From 8ea9fbe34bce795450e0f4200078649dcf1d3f8c Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 17 Dec 2018 19:45:06 +0200 Subject: [PATCH] Avoid compilation warning in ftfont.c * src/ftfont.c (ftfont_shape_by_hb): Compile only if HAVE_LIBOTF is defined. (Bug#33771) --- src/ftfont.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2