From ff9183045f0d1eba71867cba89239aae4b3667f7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 2 Oct 2026 15:52:40 -0600 Subject: [PATCH] Fix compiler warning --- src/hb-ot-metrics.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-metrics.cc b/src/hb-ot-metrics.cc index ccfb31c8e..272780caa 100644 --- a/src/hb-ot-metrics.cc +++ b/src/hb-ot-metrics.cc @@ -69,10 +69,11 @@ _hb_ot_metrics_get_position_common (hb_font_t *font, #else #define GET_VAR .0f #endif -#define GET_METRIC_X(TABLE, ATTR) \ - (face->table.TABLE->has_data () && \ - ((void) (position && (*position = font->em_scalef_x (_fix_ascender_descender ( \ - face->table.TABLE->ATTR + GET_VAR, metrics_tag)))), true)) +// Unused: +//#define GET_METRIC_X(TABLE, ATTR) \ +// (face->table.TABLE->has_data () && \ +// ((void) (position && (*position = font->em_scalef_x (_fix_ascender_descender ( \ +// face->table.TABLE->ATTR + GET_VAR, metrics_tag)))), true)) #define GET_METRIC_Y(TABLE, ATTR) \ (face->table.TABLE->has_data () && \ ((void) (position && (*position = font->em_scalef_y (_fix_ascender_descender ( \