[pango/pango2: 130/168] Fix some compiler warnings




commit 08fe227e9ca69e126c413e298193288d01646bfd
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 15 15:35:57 2022 -0400

    Fix some compiler warnings

 pango/pangocoretext-fontmap.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index ab5d342e..71bf5230 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -362,7 +362,6 @@ face_from_ct_font_descriptor (CTFontDescriptorRef desc)
 static void
 pango_core_text_font_map_populate (PangoFontMap *map)
 {
-  PangoCoreTextFontMap *self = PANGO_CORE_TEXT_FONT_MAP (map);
   CTFontCollectionRef collection;
   CFArrayRef ctfaces;
   CFIndex count;
@@ -375,7 +374,8 @@ pango_core_text_font_map_populate (PangoFontMap *map)
   for (int i = 0; i < count; i++)
     {
       CTFontDescriptorRef desc = CFArrayGetValueAtIndex (ctfaces, i);
-      pango_font_map_add_face (map, face_from_ct_font_descriptor (desc));
+      PangoHbFace *face = face_from_ct_font_descriptor (desc);
+      pango_font_map_add_face (map, PANGO_FONT_FACE (face));
     }
 
   /* Add generic aliases */
@@ -402,7 +402,7 @@ pango_core_text_font_map_populate (PangoFontMap *map)
 
           alias_family = pango_generic_family_new (aliases[i].alias_name);
           pango_generic_family_add_family (alias_family, family);
-          pango_font_map_add_family (map, alias_family);
+          pango_font_map_add_family (map, PANGO_FONT_FAMILY (alias_family));
         }
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]