mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
Cast iface_init to GInterfaceInitFunc
This is in line with what all other type define macros do. https://bugzilla.gnome.org/show_bug.cgi?id=508157
This commit is contained in:
parent
36646f46ab
commit
b35fa1994d
@ -232,7 +232,7 @@ type_name##_register_type (GTypeModule *type_module) \
|
||||
*/
|
||||
#define G_IMPLEMENT_INTERFACE_DYNAMIC(TYPE_IFACE, iface_init) { \
|
||||
const GInterfaceInfo g_implement_interface_info = { \
|
||||
iface_init, NULL, NULL \
|
||||
(GInterfaceInitFunc) iface_init, NULL, NULL \
|
||||
}; \
|
||||
g_type_module_add_interface (type_module, g_define_type_id, TYPE_IFACE, &g_implement_interface_info); \
|
||||
}
|
||||
|
@ -93,8 +93,7 @@ dynamic_object_class_finalize (DynamicObjectClass *class)
|
||||
}
|
||||
|
||||
static void
|
||||
dynamic_object_iface_init (gpointer g_iface,
|
||||
gpointer iface_data)
|
||||
dynamic_object_iface_init (TestIface *iface)
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user