Avoid GCC 8 warning "cast between incompatible function types" with -Wextra

This commit is contained in:
Paul Cornett
2018-08-22 08:29:35 -07:00
parent d200f19c02
commit 7c44f807ad

View File

@@ -74,7 +74,8 @@ public:
~wxGtkTreePathList()
{
// Delete the list contents, wxGtkList will delete the list itself.
g_list_foreach(m_list, (GFunc)gtk_tree_path_free, NULL);
for (GList* p = m_list; p; p = p->next)
gtk_tree_path_free(static_cast<GtkTreePath*>(p->data));
}
};