From c73d7ba75d4556d9b8e05b10d6572f74f4814f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20R=C3=B6ttsches?= Date: Tue, 14 May 2019 13:26:18 +0300 Subject: [PATCH] Fix building with HB_NO_SUBSET_LAYOUT Fixes an unused function warning when building with HB_NO_SUBSET_LAYOUT as part of the Chrome build. --- src/hb-subset-plan.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 6eb78916..e475676a 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -68,6 +68,7 @@ _add_cff_seac_components (const OT::cff1::accelerator_t &cff, } #endif +#ifndef HB_NO_SUBSET_LAYOUT static inline void _gsub_closure (hb_face_t *face, hb_set_t *gids_to_retain) { @@ -82,6 +83,7 @@ _gsub_closure (hb_face_t *face, hb_set_t *gids_to_retain) &lookup_indices, gids_to_retain); } +#endif static inline void _remove_invalid_gids (hb_set_t *glyphs, -- GitLab