diff options
author | Andre Miranda <andreldm@xfce.org> | 2019-04-14 12:42:55 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2019-04-14 12:42:55 -0300 |
commit | 94a5e34e767ef52cd5461b67732096031c20a335 (patch) | |
tree | 6f76295db86d1c86cb006f9098e49ee2432c92eb /thunarx | |
parent | c15594c0078a2f56f9d5c99942c96ba78bb153cb (diff) | |
download | thunar-94a5e34e767ef52cd5461b67732096031c20a335.tar.gz |
Fix compiler error -Wcast-function-type (GCC 8)
Diffstat (limited to 'thunarx')
-rw-r--r-- | thunarx/thunarx-file-info.c | 4 | ||||
-rw-r--r-- | thunarx/thunarx-menu-item.c | 2 | ||||
-rw-r--r-- | thunarx/thunarx-menu.c | 2 | ||||
-rw-r--r-- | thunarx/thunarx-provider-plugin.c | 2 | ||||
-rw-r--r-- | thunarx/thunarx.h | 6 |
5 files changed, 8 insertions, 8 deletions
diff --git a/thunarx/thunarx-file-info.c b/thunarx/thunarx-file-info.c index ae9f184e..ad832062 100644 --- a/thunarx/thunarx-file-info.c +++ b/thunarx/thunarx-file-info.c @@ -427,12 +427,12 @@ GList* thunarx_file_info_list_copy (GList *file_infos) { #if GLIB_CHECK_VERSION (2, 34, 0) - return g_list_copy_deep (file_infos, (GCopyFunc) g_object_ref, NULL); + return g_list_copy_deep (file_infos, (GCopyFunc) (void (*)(void)) g_object_ref, NULL); #else GList *copy; copy = g_list_copy (file_infos); - g_list_foreach (copy, (GFunc) g_object_ref, NULL); + g_list_foreach (copy, (GFunc) (void (*)(void)) g_object_ref, NULL); return copy; #endif diff --git a/thunarx/thunarx-menu-item.c b/thunarx/thunarx-menu-item.c index d9a518c9..7622b89f 100644 --- a/thunarx/thunarx-menu-item.c +++ b/thunarx/thunarx-menu-item.c @@ -414,6 +414,6 @@ thunarx_menu_item_list_free (GList *items) { g_return_if_fail (items != NULL); - g_list_foreach (items, (GFunc)g_object_unref, NULL); + g_list_foreach (items, (GFunc) (void (*)(void)) g_object_unref, NULL); g_list_free (items); } diff --git a/thunarx/thunarx-menu.c b/thunarx/thunarx-menu.c index 97961b59..b3fcf208 100644 --- a/thunarx/thunarx-menu.c +++ b/thunarx/thunarx-menu.c @@ -138,7 +138,7 @@ thunarx_menu_get_items (ThunarxMenu *menu) g_return_val_if_fail (menu != NULL, NULL); items = g_list_copy (menu->priv->items); - g_list_foreach (items, (GFunc) g_object_ref, NULL); + g_list_foreach (items, (GFunc) (void (*)(void)) g_object_ref, NULL); return items; } diff --git a/thunarx/thunarx-provider-plugin.c b/thunarx/thunarx-provider-plugin.c index a1d3abfb..ef2a197f 100644 --- a/thunarx/thunarx-provider-plugin.c +++ b/thunarx/thunarx-provider-plugin.c @@ -53,7 +53,7 @@ thunarx_provider_plugin_get_type (void) type = g_type_register_static_simple (G_TYPE_INTERFACE, I_("ThunarxProviderPlugin"), sizeof (ThunarxProviderPluginIface), - (GClassInitFunc) thunarx_provider_plugin_class_init, + (GClassInitFunc) (void (*)(void)) thunarx_provider_plugin_class_init, 0, NULL, 0); diff --git a/thunarx/thunarx.h b/thunarx/thunarx.h index 192bf9a7..2ec42526 100644 --- a/thunarx/thunarx.h +++ b/thunarx/thunarx.h @@ -69,12 +69,12 @@ type_name##_register_type (ThunarxProviderPlugin *thunarx_define_type_plugin) \ sizeof (TypeName##Class), \ NULL, \ NULL, \ - (GClassInitFunc) type_name##_class_intern_init, \ + (GClassInitFunc) (void (*)(void)) type_name##_class_intern_init, \ NULL, \ NULL, \ sizeof (TypeName), \ 0, \ - (GInstanceInitFunc) type_name##_init, \ + (GInstanceInitFunc) (void (*)(void)) type_name##_init, \ NULL, \ }; \ thunarx_define_type_id = thunarx_provider_plugin_register_type (thunarx_define_type_plugin, TYPE_PARENT, \ @@ -87,7 +87,7 @@ type_name##_register_type (ThunarxProviderPlugin *thunarx_define_type_plugin) \ { \ static const GInterfaceInfo thunarx_implement_interface_info = \ { \ - (GInterfaceInitFunc) iface_init \ + (GInterfaceInitFunc) (void (*)(void)) iface_init \ }; \ thunarx_provider_plugin_add_interface (thunarx_define_type_plugin, thunarx_define_type_id, TYPE_IFACE, &thunarx_implement_interface_info); \ } |