From 28a6895df5fa4a1a60c794ed5e85e31d764e85e7 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 28 Feb 2020 09:07:37 +0100 Subject: Remove warnings: cast between incompatible function types --- plugins/spell/pluma-spell-checker-dialog.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/spell') diff --git a/plugins/spell/pluma-spell-checker-dialog.c b/plugins/spell/pluma-spell-checker-dialog.c index 3689a280..146c3175 100644 --- a/plugins/spell/pluma-spell-checker-dialog.c +++ b/plugins/spell/pluma-spell-checker-dialog.c @@ -426,8 +426,7 @@ pluma_spell_checker_dialog_set_misspelled_word (PlumaSpellCheckerDialog *dlg, update_suggestions_list_model (dlg, sug); /* free the suggestion list */ - g_slist_foreach (sug, (GFunc)g_free, NULL); - g_slist_free (sug); + g_slist_free_full (sug, g_free); gtk_widget_set_sensitive (dlg->ignore_button, TRUE); gtk_widget_set_sensitive (dlg->ignore_all_button, TRUE); @@ -578,8 +577,7 @@ check_word_button_clicked_handler (GtkButton *button, PlumaSpellCheckerDialog *d update_suggestions_list_model (dlg, sug); /* free the suggestion list */ - g_slist_foreach (sug, (GFunc)g_free, NULL); - g_slist_free (sug); + g_slist_free_full (sug, g_free); } } -- cgit v1.2.1