From c2cdcd4901132ea7690bda655602d84e63505eb1 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 17 Oct 2020 21:57:27 +0200 Subject: [PATCH] [tests] warning: unused variable 'num_glyphs' --- test/api/test-buffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/api/test-buffer.c b/test/api/test-buffer.c index 76bae3ecb..6c90109a8 100644 --- a/test/api/test-buffer.c +++ b/test/api/test-buffer.c @@ -880,7 +880,7 @@ test_buffer_serialize_deserialize (void) for (i = 0; i < G_N_ELEMENTS (serialization_tests); i++) { - unsigned int num_glyphs, consumed; + unsigned int consumed; char round_trip[1024]; hb_bool_t retval; @@ -895,7 +895,7 @@ test_buffer_serialize_deserialize (void) // Expected parse failure, got one, don't round-trip if (test->success != 0) { - num_glyphs = hb_buffer_get_length (b); + unsigned int num_glyphs = hb_buffer_get_length (b); g_assert_cmpint (num_glyphs, ==, test->num_items); hb_buffer_serialize_unicode (b, 0, num_glyphs, round_trip, @@ -909,7 +909,7 @@ test_buffer_serialize_deserialize (void) } char test[1024]; - unsigned int num_glyphs, consumed; + unsigned int consumed; hb_buffer_t *indeterminate = hb_buffer_get_empty (); hb_buffer_serialize (indeterminate, 0, (unsigned) -1, test, sizeof(test), &consumed, NULL,