From fefaa8c835cf42f3ee5327a927aac62a10165019 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Fri, 17 Apr 2020 22:28:09 +0430 Subject: [PATCH] [test] define G_APPROX_VALUE and EPSILON only when used resolves -Weverything bot complain --- test/api/test-var-coords.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/api/test-var-coords.c b/test/api/test-var-coords.c index 4e3e62760..aa152e3ed 100644 --- a/test/api/test-var-coords.c +++ b/test/api/test-var-coords.c @@ -28,17 +28,17 @@ /* Unit tests for hb_font_[gs]et_var_coords_ */ +static void +test_get_var_coords (void) +{ +#ifdef HB_EXPERIMENTAL_API #ifndef G_APPROX_VALUE #define G_APPROX_VALUE(a, b, epsilon) \ (((a) > (b) ? (a) - (b) : (b) - (a)) < (epsilon)) #endif #define EPSILON 0.05f - -static void -test_get_var_coords (void) -{ -#ifdef HB_EXPERIMENTAL_API + hb_face_t *face = hb_test_open_font_file ("fonts/TestCFF2VF.otf"); hb_font_t *font = hb_font_create (face);