diff options
author | Philip Withnall <withnall@endlessm.com> | 2019-03-05 12:24:01 +0000 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2019-03-08 19:46:21 +0000 |
commit | 3d3ca9f1febc24e1d974bf4b895ade5513492b5f (patch) | |
tree | 23b3076c38bc9663a0a0d0a25dfebaf2a90f07c5 /gobject/gtype.c | |
parent | faa1d63cab9d7c412460b567915ad148d55986ae (diff) | |
download | glib-3d3ca9f1febc24e1d974bf4b895ade5513492b5f.tar.gz |
gobject: Fix various compiler warnings when compiling with G_DISABLE_ASSERT
Mostly unused variables which are only used in a g_assert() call
otherwise.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Helps: #1708
Diffstat (limited to 'gobject/gtype.c')
-rw-r--r-- | gobject/gtype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/gtype.c b/gobject/gtype.c index 1acc0a075..8a60105e8 100644 --- a/gobject/gtype.c +++ b/gobject/gtype.c @@ -4362,7 +4362,7 @@ gobject_init (void) const gchar *env_string; GTypeInfo info; TypeNode *node; - GType type; + GType type G_GNUC_UNUSED /* when compiling with G_DISABLE_ASSERT */; /* Ensure GLib is initialized first, see * https://bugzilla.gnome.org/show_bug.cgi?id=756139 |