Skip to content

Commit 34f34d6

Browse files
committed
lapiz-spell-checker-dialog: add G_GNUC_UNUSED in unused parameters
1 parent 380e9bd commit 34f34d6

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

plugins/spell/lapiz-spell-checker-dialog.c

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ create_dialog (LapizSpellCheckerDialog *dlg,
324324
}
325325

326326
static void
327-
lapiz_spell_checker_dialog_init (LapizSpellCheckerDialog *dlg)
327+
lapiz_spell_checker_dialog_init (LapizSpellCheckerDialog *dlg G_GNUC_UNUSED)
328328
{
329329
}
330330

@@ -398,7 +398,7 @@ lapiz_spell_checker_dialog_set_spell_checker (LapizSpellCheckerDialog *dlg, Lapi
398398
void
399399
lapiz_spell_checker_dialog_set_misspelled_word (LapizSpellCheckerDialog *dlg,
400400
const gchar *word,
401-
gint len)
401+
gint len G_GNUC_UNUSED)
402402
{
403403
gchar *tmp;
404404
GSList *sug;
@@ -485,7 +485,8 @@ update_suggestions_list_model (LapizSpellCheckerDialog *dlg, GSList *suggestions
485485
}
486486

487487
static void
488-
word_entry_changed_handler (CtkEditable *editable, LapizSpellCheckerDialog *dlg)
488+
word_entry_changed_handler (CtkEditable *editable G_GNUC_UNUSED,
489+
LapizSpellCheckerDialog *dlg)
489490
{
490491
const gchar *text;
491492

@@ -508,7 +509,8 @@ word_entry_changed_handler (CtkEditable *editable, LapizSpellCheckerDialog *dlg)
508509
}
509510

510511
static void
511-
close_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
512+
close_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
513+
LapizSpellCheckerDialog *dlg)
512514
{
513515
g_return_if_fail (LAPIZ_IS_SPELL_CHECKER_DIALOG (dlg));
514516

@@ -540,7 +542,8 @@ suggestions_list_selection_changed_handler (CtkTreeSelection *selection,
540542
}
541543

542544
static void
543-
check_word_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
545+
check_word_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
546+
LapizSpellCheckerDialog *dlg)
544547
{
545548
const gchar *word;
546549
gssize len;
@@ -584,7 +587,8 @@ check_word_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *d
584587
}
585588

586589
static void
587-
add_word_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
590+
add_word_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
591+
LapizSpellCheckerDialog *dlg)
588592
{
589593
gchar *word;
590594

@@ -603,7 +607,8 @@ add_word_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg
603607
}
604608

605609
static void
606-
ignore_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
610+
ignore_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
611+
LapizSpellCheckerDialog *dlg)
607612
{
608613
gchar *word;
609614

@@ -618,7 +623,8 @@ ignore_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
618623
}
619624

620625
static void
621-
ignore_all_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
626+
ignore_all_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
627+
LapizSpellCheckerDialog *dlg)
622628
{
623629
gchar *word;
624630

@@ -637,7 +643,8 @@ ignore_all_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *d
637643
}
638644

639645
static void
640-
change_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
646+
change_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
647+
LapizSpellCheckerDialog *dlg)
641648
{
642649
const gchar *entry_text;
643650
gchar *change;
@@ -665,18 +672,19 @@ change_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
665672

666673
/* double click on one of the suggestions is like clicking on "change" */
667674
static void
668-
suggestions_list_row_activated_handler (CtkTreeView *view,
669-
CtkTreePath *path,
670-
CtkTreeViewColumn *column,
671-
LapizSpellCheckerDialog *dlg)
675+
suggestions_list_row_activated_handler (CtkTreeView *view G_GNUC_UNUSED,
676+
CtkTreePath *path G_GNUC_UNUSED,
677+
CtkTreeViewColumn *column G_GNUC_UNUSED,
678+
LapizSpellCheckerDialog *dlg)
672679
{
673680
g_return_if_fail (LAPIZ_IS_SPELL_CHECKER_DIALOG (dlg));
674681

675682
change_button_clicked_handler (CTK_BUTTON (dlg->change_button), dlg);
676683
}
677684

678685
static void
679-
change_all_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
686+
change_all_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
687+
LapizSpellCheckerDialog *dlg)
680688
{
681689
const gchar *entry_text;
682690
gchar *change;

0 commit comments

Comments
 (0)