From 955f86a034b11827a5d3bfb6e60f7e00a4bf40db Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 24 Aug 2021 11:17:10 -0600 Subject: [PATCH] [test-set] Fix compiler warnings --- 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 cd35b9773..f2f9419bc 100644 --- a/test/api/test-set.c +++ b/test/api/test-set.c @@ -986,12 +986,13 @@ check_set_operations(hb_bool_t a_has_x, hb_set_t* a = prepare_set (a_has_x, a_inverted, a_has_page, a_is_null); hb_set_t* b = prepare_set (b_has_x, b_inverted, b_has_page, b_is_null); - char* op_name; + const char* op_name; hb_bool_t has_expected; hb_bool_t should_have_x; switch (op) { - case UNION: default: + case LAST: + case UNION: op_name = "union"; should_have_x = (a_has_x || b_has_x) && !a_is_null; hb_set_union (a, b);