[tests] warning: unused variable 'num_glyphs'
diff --git a/test/api/test-buffer.c b/test/api/test-buffer.c
index 76bae3e..6c90109 100644
--- a/test/api/test-buffer.c
+++ b/test/api/test-buffer.c
@@ -880,7 +880,7 @@
 
   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 @@
     // 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 @@
   }
 
   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,