Build fails with clang and core text on macOS
Build error using Clang on macOS aarch64:
../pango/pangocoretext-fontmap.c:1698:28: error: variable 'key' set but not used [-Werror,-Wunused-but-set-variable]
It looks like the function pango_core_text_fontset_load_font
declares and initialized key but then never uses it. Instead the function directly uses ctfontset->key
. A quick fix is to update the pango_core_text_font_map_new_font
call to use key
instead of ctfontset->key
.
I'm not sure if it is better to just remove key
and skip calling pango_core_text_fontset_get_key
altogether.