Fix HB_NO_SHAPER HB_NO_OT_SHAPE build

This commit is contained in:
Behdad Esfahbod 2022-07-13 12:46:36 -06:00
parent 015aecfcdd
commit 42da7da5ef
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ hb_shape_plan_key_t::init (bool copy,
} }
else else
{ {
const hb_shaper_entry_t *shapers = _hb_shapers_get (); const HB_UNUSED hb_shaper_entry_t *shapers = _hb_shapers_get ();
for (unsigned int i = 0; i < HB_SHAPERS_COUNT; i++) for (unsigned int i = 0; i < HB_SHAPERS_COUNT; i++)
if (false) if (false)
; ;

View File

@ -64,7 +64,7 @@ static struct hb_shapers_lazy_loader_t : hb_lazy_loader_t<hb_shaper_entry_t,
if (!end) if (!end)
end = p + strlen (p); end = p + strlen (p);
for (unsigned int j = i; j < ARRAY_LENGTH (_hb_all_shapers); j++) for (unsigned int j = i; j < ARRAY_LENGTH_CONST (_hb_all_shapers); j++)
if (end - p == (int) strlen (shapers[j].name) && if (end - p == (int) strlen (shapers[j].name) &&
0 == strncmp (shapers[j].name, p, end - p)) 0 == strncmp (shapers[j].name, p, end - p))
{ {