[Patch] Fix 'cast between incompatible function types' warnings
Submitted by Sergey Smirnykh
Description
Created attachment 8974 Fixes 'cast between incompatible function types' warnings
This patch fixes the following warnings:
xfpm-dbus-monitor.c: In function ‘xfpm_dbus_monitor_finalize’:
xfpm-dbus-monitor.c:282:54: warning: cast between incompatible function types from ‘void (*)(XfpmWatchData *)’ {aka ‘void (*)(struct `<anonymous>` *)’} to ‘void (*)(void *, void *)’ [-Wcast-function-type]
282 | g_ptr_array_foreach (monitor->priv->names_array, (GFunc) xfpm_dbus_monitor_free_watch_data, NULL);
| ^
xfpm-dbus-monitor.c:283:57: warning: cast between incompatible function types from ‘void (*)(XfpmWatchData *)’ {aka ‘void (*)(struct `<anonymous>` *)’} to ‘void (*)(void *, void *)’ [-Wcast-function-type]
283 | g_ptr_array_foreach (monitor->priv->services_array, (GFunc) xfpm_dbus_monitor_free_watch_data, NULL);
| ^
xfpm-notify.c: In function ‘xfpm_notify_get_server_caps’:
xfpm-notify.c:97:23: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void (*)(void *, void *)’ [-Wcast-function-type]
97 | g_list_foreach(caps, (GFunc)g_free, NULL);
|
Patch 8974, "Fixes 'cast between incompatible function types' warnings":
xfce4-power-manager-patch
Version: git
Edited by Yousuf Philips