diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2020-11-24 08:55:58 +0000 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2020-11-24 08:55:58 +0000 |
commit | e8355655232aa2039a22e49dba6f48a54348b80d (patch) | |
tree | e682359161679059adc9245c1777be8f7abbfe4b | |
parent | 72360eb8bdc52debd314f722977c0f4205762ff3 (diff) | |
download | glib-e8355655232aa2039a22e49dba6f48a54348b80d.tar.gz |
gfileicon: Fix unused-but-set variable with G_DISABLE_ASSERTwip/pwithnall/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>
-rw-r--r-- | gio/gfileicon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gio/gfileicon.c b/gio/gfileicon.c index 5e6e65250..2f28d48f8 100644 --- a/gio/gfileicon.c +++ b/gio/gfileicon.c @@ -114,12 +114,12 @@ g_file_icon_set_property (GObject *object, static void 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); - icon = G_FILE_ICON (object); - /* Must have be set during construction */ g_assert (icon->file != NULL); } |