From 965cf1d66589b0db60e75961cc58f5a65521078e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20R=C3=B6ttsches?= Date: Mon, 14 Mar 2022 12:48:18 +0000 Subject: [PATCH] Make load_num_glyphs_from_loca conditional on HB_NO_BORING_EXPANSION Fixes build errors complaining about this function being unused. --- src/hb-static.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-static.cc b/src/hb-static.cc index bd698814e..7cc51be61 100644 --- a/src/hb-static.cc +++ b/src/hb-static.cc @@ -56,6 +56,7 @@ const unsigned char _hb_Null_AAT_Lookup[2] = {0xFF, 0xFF}; /* hb_face_t */ +#ifndef HB_NO_BORING_EXPANSION static inline unsigned load_num_glyphs_from_loca (const hb_face_t *face) { @@ -72,6 +73,7 @@ load_num_glyphs_from_loca (const hb_face_t *face) return ret; } +#endif static inline unsigned load_num_glyphs_from_maxp (const hb_face_t *face)