From cb451011c3b2f584f2bb51fe2deb0abc073b59b8 Mon Sep 17 00:00:00 2001 From: Philip Withnall <withnall@endlessm.com> Date: Fri, 16 Feb 2018 17:42:55 +0000 Subject: [PATCH 09/18] gtype: Fix use of potentially undefined GVoidFunc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s defined in gutils.h, but various users of GLib might not have access to that. Signed-off-by: Philip Withnall <withnall@endlessm.com> Reviewed-by: nobody https://bugzilla.gnome.org/show_bug.cgi?id=793272 --- gobject/gtype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gobject/gtype.h b/gobject/gtype.h index af1496c71..d55aef972 100644 --- a/gobject/gtype.h +++ b/gobject/gtype.h @@ -2008,7 +2008,7 @@ type_name##_get_type (void) \ g_type_register_static_simple (G_TYPE_INTERFACE, \ g_intern_static_string (#TypeName), \ sizeof (TypeName##Interface), \ - (GClassInitFunc)(GVoidFunc)type_name##_default_init, \ + (GClassInitFunc)(void (*)(void)) type_name##_default_init, \ 0, \ (GInstanceInitFunc)NULL, \ (GTypeFlags) 0); \ -- 2.13.6