[gdk-pixbuf] Fix gcc warnings about function casts



commit 481dd751faffeb8c33760b6c4b41d8b803187526
Author: Benjamin Otte <otte redhat com>
Date:   Fri Feb 11 12:15:06 2011 +0100

    Fix gcc warnings about function casts

 gdk-pixbuf/gdk-pixbuf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c
index 525173a..6b59b85 100644
--- a/gdk-pixbuf/gdk-pixbuf.c
+++ b/gdk-pixbuf/gdk-pixbuf.c
@@ -224,8 +224,8 @@ gdk_pixbuf_unref (GdkPixbuf *pixbuf)
 static void
 gdk_pixbuf_icon_iface_init (GIconIface *iface)
 {
-        iface->hash = g_direct_hash;
-        iface->equal = g_direct_equal;
+        iface->hash = (guint (*) (GIcon *)) g_direct_hash;
+        iface->equal = (gboolean (*) (GIcon *, GIcon *)) g_direct_equal;
 }
 
 /* Used as the destroy notification function for gdk_pixbuf_new() */



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