[pango/coretext-warnings: 3/3] -Wincompatible-pointer-types




commit 9c2c7e994bedf0a87c434eeaa5ba9d296453203b
Author: Khaled Hosny <khaled aliftype com>
Date:   Sat Aug 28 03:14:47 2021 +0200

    -Wincompatible-pointer-types

 pango/pangocoretext-fontmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index a02a9a07..0980303b 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -1422,7 +1422,7 @@ pango_core_text_font_map_load_fontset (PangoFontMap               *fontmap,
   /* Cannot use pango_core_text_fontset_key_free() here */
   pango_font_description_free (key.desc);
 
-  return g_object_ref (fontset);
+  return g_object_ref (PANGO_FONTSET (fontset));
 }
 
 static void


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