1 From 9093ffd69850b630622a3fc8dcf09c45c51ae2f9 Mon Sep 17 00:00:00 2001
2 From: John Ralls <jralls@ceridwen.us>
3 Date: Tue, 22 Mar 2022 12:09:09 -0700
4 Subject: [PATCH] Coretext: fix clang build failure.
6 Recent versions of clang notice that pango_core_text_fontset_load_font's
7 `key` local variable isn't used and errors out. Remove it.
9 pango/pangocoretext-fontmap.c | 3 ---
10 1 file changed, 3 deletions(-)
12 diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
13 index 40e62eed..e090bfc4 100644
14 --- a/pango/pangocoretext-fontmap.c
15 +++ b/pango/pangocoretext-fontmap.c
16 @@ -1696,11 +1696,8 @@ static PangoFont *
17 pango_core_text_fontset_load_font (PangoCoreTextFontset *ctfontset,
18 CTFontDescriptorRef ctdescriptor)
20 - PangoCoreTextFontsetKey *key;
21 PangoCoreTextFont *font;
23 - key = pango_core_text_fontset_get_key (ctfontset);
25 /* For now, we will default the fallbacks to not have synthetic italic,
26 * in the future this may be improved.
29 2.32.1 (Apple Git-133)