From a7c89dd1eb4c3cf6ebedce193693fceadcdf5995 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 2 Aug 2019 07:49:25 -0400 Subject: One more warning fix --- examples/pangowin32tobmp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/pangowin32tobmp.c b/examples/pangowin32tobmp.c index 15e473ec..2a945d70 100644 --- a/examples/pangowin32tobmp.c +++ b/examples/pangowin32tobmp.c @@ -50,10 +50,13 @@ calc_duration (GTimeVal *tv1, GTimeVal *tv0) } static int -compare_font_family (PangoFontFamily** a, - PangoFontFamily** b) +compare_font_family (gconstpointer a, + gconstpointer b) { - return strcmp (pango_font_family_get_name (*a), pango_font_family_get_name (*b)); + const PangoFontFamily** aa = (const PangoFontFamily **)a; + const PangoFontFamily** bb = (const PangoFontFamily **)b; + + return strcmp (pango_font_family_get_name (*aa), pango_font_family_get_name (*bb)); } int main (int argc, char **argv) -- cgit v1.2.1