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); |
Created attachment 8976 Fixes 'cast between incompatible function types' warnings Definitions are static-qualified too now
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-power-manager/-/issues/63. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev