[glib/glib-2-54] gtype: Fix use of potentially undefined GVoidFunc
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-54] gtype: Fix use of potentially undefined GVoidFunc
- Date: Fri, 16 Feb 2018 17:46:36 +0000 (UTC)
commit cb451011c3b2f584f2bb51fe2deb0abc073b59b8
Author: Philip Withnall <withnall endlessm com>
Date: Fri Feb 16 17:42:55 2018 +0000
gtype: Fix use of potentially undefined GVoidFunc
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); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]