[ot-shape] Fix unused-var error when building without AAT

Fixes https://github.com/harfbuzz/harfbuzzjs/issues/45
This commit is contained in:
Behdad Esfahbod 2021-08-22 22:31:39 -06:00
parent 34e0b28fae
commit 33c82c7dad
1 changed files with 2 additions and 0 deletions

View File

@ -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)
;