summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-02 07:49:25 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-02 07:49:25 -0400
commita7c89dd1eb4c3cf6ebedce193693fceadcdf5995 (patch)
treeabf588e2d5de22ac412fcf34e8fd91970688b9f7 /examples
parent6c0a925fd6de88f2d7ed20051cbadbaf39eddc01 (diff)
downloadpango-a7c89dd1eb4c3cf6ebedce193693fceadcdf5995.tar.gz
One more warning fix
Diffstat (limited to 'examples')
-rw-r--r--examples/pangowin32tobmp.c9
1 files changed, 6 insertions, 3 deletions
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)