diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2017-01-19 16:50:29 -0800 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-01-19 16:50:29 -0800 |
commit | b5ecf1bfa459a755e36bc4c7f545c7f803b7d016 (patch) | |
tree | a69ad3697fb5a724fd75b1089973c479d7d40747 /test | |
parent | 2f2ceee1853649d1b2ad4315a38cd9c07659932a (diff) |
Fix warnings
Diffstat (limited to 'test')
-rw-r--r-- | test/api/test-ot-math.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/test/api/test-ot-math.c b/test/api/test-ot-math.c index cfac1090..e7a6fc89 100644 --- a/test/api/test-ot-math.c +++ b/test/api/test-ot-math.c @@ -401,6 +401,11 @@ static void test_get_glyph_variants (void) { hb_codepoint_t glyph; + hb_ot_math_glyph_variant_t variants[20]; + unsigned variantsSize = sizeof (variants) / sizeof (variants[0]); + unsigned int count; + unsigned int offset = 0; + initFreeType(); openFont("fonts/MathTestFontEmpty.otf"); @@ -464,10 +469,6 @@ test_get_glyph_variants (void) NULL), ==, 0); g_assert(hb_font_get_glyph_from_name (hb_font, "arrowleft", -1, &glyph)); - hb_ot_math_glyph_variant_t variants[20]; - unsigned variantsSize = sizeof (variants) / sizeof (variants[0]); - unsigned int count; - unsigned int offset = 0; do { count = variantsSize; hb_ot_math_get_glyph_variants (hb_font, @@ -524,6 +525,11 @@ static void test_get_glyph_assembly (void) { hb_codepoint_t glyph; + hb_ot_math_glyph_part_t parts[20]; + unsigned partsSize = sizeof (parts) / sizeof (parts[0]); + unsigned int count; + unsigned int offset = 0; + initFreeType(); openFont("fonts/MathTestFontEmpty.otf"); @@ -591,10 +597,6 @@ test_get_glyph_assembly (void) NULL), ==, 0); g_assert(hb_font_get_glyph_from_name (hb_font, "arrowright", -1, &glyph)); - hb_ot_math_glyph_part_t parts[20]; - unsigned partsSize = sizeof (parts) / sizeof (parts[0]); - unsigned int count; - unsigned int offset = 0; do { count = partsSize; hb_ot_math_get_glyph_assembly (hb_font, |