gobject-introspection r431 - in trunk: . girepository



Author: johan
Date: Thu Aug 21 08:20:07 2008
New Revision: 431
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=431&view=rev

Log:
2008-08-21  Johan Dahlin  <johan gnome org>

    * girepository/girparser.c (resolve_aliases):
    Remove compilation warnings



Modified:
   trunk/ChangeLog
   trunk/girepository/girparser.c

Modified: trunk/girepository/girparser.c
==============================================================================
--- trunk/girepository/girparser.c	(original)
+++ trunk/girepository/girparser.c	Thu Aug 21 08:20:07 2008
@@ -439,15 +439,17 @@
   gpointer value;
   GSList *seen_values = NULL;
 
-  seen_values = g_slist_prepend (seen_values, type);
+  seen_values = g_slist_prepend (seen_values, (char*)type);
   while (g_hash_table_lookup_extended (ctx->aliases, type, &orig, &value))
     {
       g_debug ("Resolved: %s => %s", type, value);
       type = value;
-      if (g_slist_find_custom (seen_values, type, strcmp) != NULL)
+      if (g_slist_find_custom (seen_values, type,
+			       (GCompareFunc)strcmp) != NULL)
 	break;
-      seen_values = g_slist_prepend (seen_values, type);
+      seen_values = g_slist_prepend (seen_values, (gchar*)type);
     }
+  g_slist_free (seen_values);
   return type;
 }
 



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