From 33c82c7dad41a7dc7ac007b63a5c3e9a45b6faf4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 22 Aug 2021 22:31:39 -0600 Subject: [PATCH] [ot-shape] Fix unused-var error when building without AAT Fixes https://github.com/harfbuzz/harfbuzzjs/issues/45 --- src/hb-ot-shape.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 90d0d99a0..b72d733c6 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -149,7 +149,9 @@ hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan, * Decide who does positioning. GPOS, kerx, kern, or fallback. */ +#ifndef HB_NO_AAT_SHAPE bool has_gsub = hb_ot_layout_has_substitution (face); +#endif bool has_gpos = !disable_gpos && hb_ot_layout_has_positioning (face); if (false) ;