diff options
author | Hyunjee Kim <hj0426.kim@samsung.com> | 2019-12-03 10:42:37 +0900 |
---|---|---|
committer | Hyunjee Kim <hj0426.kim@samsung.com> | 2019-12-03 10:42:37 +0900 |
commit | 99d572044d3b94498607a05ad7aaccf372e8cbff (patch) | |
tree | 7c5dad139ba0b85031a7378639e419b108e10659 /gobject/gtypemodule.h | |
parent | a60402374ac62bf99a22f84f0801d5513b12fd66 (diff) | |
download | glib-99d572044d3b94498607a05ad7aaccf372e8cbff.tar.gz glib-99d572044d3b94498607a05ad7aaccf372e8cbff.tar.bz2 glib-99d572044d3b94498607a05ad7aaccf372e8cbff.zip |
Imported Upstream version 2.59.1
Diffstat (limited to 'gobject/gtypemodule.h')
-rw-r--r-- | gobject/gtypemodule.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gobject/gtypemodule.h b/gobject/gtypemodule.h index deeadcdd3..5c4025063 100644 --- a/gobject/gtypemodule.h +++ b/gobject/gtypemodule.h @@ -204,12 +204,12 @@ type_name##_register_type (GTypeModule *type_module) \ sizeof (TypeName##Class), \ (GBaseInitFunc) NULL, \ (GBaseFinalizeFunc) NULL, \ - (GClassInitFunc) type_name##_class_intern_init, \ - (GClassFinalizeFunc) type_name##_class_finalize, \ + (GClassInitFunc)(void (*)(void)) type_name##_class_intern_init, \ + (GClassFinalizeFunc)(void (*)(void)) type_name##_class_finalize, \ NULL, /* class_data */ \ sizeof (TypeName), \ 0, /* n_preallocs */ \ - (GInstanceInitFunc) type_name##_init, \ + (GInstanceInitFunc)(void (*)(void)) type_name##_init, \ NULL /* value_table */ \ }; \ type_name##_type_id = g_type_module_register_type (type_module, \ @@ -238,7 +238,7 @@ type_name##_register_type (GTypeModule *type_module) \ */ #define G_IMPLEMENT_INTERFACE_DYNAMIC(TYPE_IFACE, iface_init) { \ const GInterfaceInfo g_implement_interface_info = { \ - (GInterfaceInitFunc) iface_init, NULL, NULL \ + (GInterfaceInitFunc)(void (*)(void)) iface_init, NULL, NULL \ }; \ g_type_module_add_interface (type_module, g_define_type_id, TYPE_IFACE, &g_implement_interface_info); \ } |