mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Silence a bunch of -Wunused-but-set-variable warnings
Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
@@ -124,7 +124,6 @@ g_icon_equal (GIcon *icon1,
|
||||
static gboolean
|
||||
g_icon_to_string_tokenized (GIcon *icon, GString *s)
|
||||
{
|
||||
char *ret;
|
||||
GPtrArray *tokens;
|
||||
gint version;
|
||||
GIconIface *icon_iface;
|
||||
@@ -133,8 +132,6 @@ g_icon_to_string_tokenized (GIcon *icon, GString *s)
|
||||
g_return_val_if_fail (icon != NULL, FALSE);
|
||||
g_return_val_if_fail (G_IS_ICON (icon), FALSE);
|
||||
|
||||
ret = NULL;
|
||||
|
||||
icon_iface = G_ICON_GET_IFACE (icon);
|
||||
if (icon_iface->to_tokens == NULL)
|
||||
return FALSE;
|
||||
@@ -383,6 +380,7 @@ ensure_builtin_icon_types (void)
|
||||
t = g_file_icon_get_type ();
|
||||
t = g_emblemed_icon_get_type ();
|
||||
t = g_emblem_get_type ();
|
||||
(t); /* To avoid -Wunused-but-set-variable */
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user