From cb6c6b0c425e560f32b297c15dc6775e297d5b1d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 26 Oct 2017 11:43:33 -0600 Subject: [PATCH] Fix warning https://github.com/behdad/harfbuzz/commit/49a41dc75931cc2d2f7e74b7801f8cc327039e8e#commitcomment-25203194 --- test/api/test-set.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/api/test-set.c b/test/api/test-set.c index d9cb1b018..afc473d7f 100644 --- a/test/api/test-set.c +++ b/test/api/test-set.c @@ -89,11 +89,12 @@ test_set_basic (void) hb_set_destroy (s); } -static void +static inline void print_set (hb_set_t *s) { + hb_codepoint_t next; printf ("{"); - for (hb_codepoint_t next = HB_SET_VALUE_INVALID; hb_set_next (s, &next); ) + for (next = HB_SET_VALUE_INVALID; hb_set_next (s, &next); ) printf ("%d, ", next); printf ("}\n"); }