mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
Remove compilation warnings
2008-08-21 Johan Dahlin <johan@gnome.org> * girepository/girparser.c (resolve_aliases): Remove compilation warnings svn path=/trunk/; revision=431
This commit is contained in:
parent
790ba0d7b0
commit
9152ea35ab
@ -439,15 +439,17 @@ resolve_aliases (ParseContext *ctx, const gchar *type)
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user