mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
gfileicon: Fix unused-but-set variable with G_DISABLE_ASSERT
This fixes a warning (which is promoted to an error) in our `G_DISABLE_ASSERT` CI. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
d78778cc46
commit
44c4e42151
@ -114,12 +114,12 @@ g_file_icon_set_property (GObject *object,
|
|||||||
static void
|
static void
|
||||||
g_file_icon_constructed (GObject *object)
|
g_file_icon_constructed (GObject *object)
|
||||||
{
|
{
|
||||||
GFileIcon *icon;
|
#ifndef G_DISABLE_ASSERT
|
||||||
|
GFileIcon *icon = G_FILE_ICON (object);
|
||||||
|
#endif
|
||||||
|
|
||||||
G_OBJECT_CLASS (g_file_icon_parent_class)->constructed (object);
|
G_OBJECT_CLASS (g_file_icon_parent_class)->constructed (object);
|
||||||
|
|
||||||
icon = G_FILE_ICON (object);
|
|
||||||
|
|
||||||
/* Must have be set during construction */
|
/* Must have be set during construction */
|
||||||
g_assert (icon->file != NULL);
|
g_assert (icon->file != NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user