summaryrefslogtreecommitdiff
path: root/finch/gntaccount.c
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2023-02-23 01:32:33 -0600
committerGary Kramlich <grim@reaperworld.com>2023-02-23 01:32:33 -0600
commite22ab2383cdf2498f6b084ee7156c16dd90d5821 (patch)
tree6634c17178ffa7ed7ae4cf668bc417350ca98fd5 /finch/gntaccount.c
parent48c76aa1200cd3d864017c8906d43eb8612b12cb (diff)
downloadpidgin-e22ab2383cdf2498f6b084ee7156c16dd90d5821.tar.gz
Mark unused parameters as such for all finch
Testing Done: Turned the warning level up to 2, compiled, and verified the warnings were gone. Reviewed at https://reviews.imfreedom.org/r/2254/
Diffstat (limited to 'finch/gntaccount.c')
-rw-r--r--finch/gntaccount.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/finch/gntaccount.c b/finch/gntaccount.c
index bd14173363..1baf2079f8 100644
--- a/finch/gntaccount.c
+++ b/finch/gntaccount.c
@@ -527,7 +527,10 @@ update_user_options(AccountEditDialog *dialog)
}
static void
-protocol_changed_cb(GntWidget *combo, PurpleProtocol *old, PurpleProtocol *new, AccountEditDialog *dialog)
+protocol_changed_cb(G_GNUC_UNUSED GntWidget *combo,
+ G_GNUC_UNUSED PurpleProtocol *old,
+ G_GNUC_UNUSED PurpleProtocol *new,
+ AccountEditDialog *dialog)
{
update_user_splits(dialog);
add_account_options(dialog);
@@ -664,13 +667,13 @@ edit_account(PurpleAccount *account)
}
static void
-add_account_cb(GntWidget *widget, gpointer null)
+add_account_cb(G_GNUC_UNUSED GntWidget *widget, G_GNUC_UNUSED gpointer data)
{
edit_account(NULL);
}
static void
-modify_account_cb(GntWidget *widget, GntTree *tree)
+modify_account_cb(G_GNUC_UNUSED GntWidget *widget, GntTree *tree)
{
PurpleAccount *account = gnt_tree_get_selection_data(tree);
if (!account)
@@ -700,7 +703,7 @@ really_delete_account(PurpleAccount *account)
}
static void
-delete_account_cb(GntWidget *widget, GntTree *tree)
+delete_account_cb(G_GNUC_UNUSED GntWidget *widget, GntTree *tree)
{
PurpleAccount *account = NULL;
PurpleContactInfo *info = NULL;
@@ -724,7 +727,7 @@ delete_account_cb(GntWidget *widget, GntTree *tree)
}
static void
-account_toggled(GntWidget *widget, void *key, gpointer null)
+account_toggled(GntWidget *widget, void *key, G_GNUC_UNUSED gpointer data)
{
PurpleAccount *account = key;
gboolean enabled = gnt_tree_get_choice(GNT_TREE(widget), key);
@@ -737,7 +740,8 @@ account_toggled(GntWidget *widget, void *key, gpointer null)
}
static gboolean
-account_list_key_pressed_cb(GntWidget *widget, const char *text, gpointer null)
+account_list_key_pressed_cb(GntWidget *widget, const char *text,
+ G_GNUC_UNUSED gpointer data)
{
GntTree *tree = GNT_TREE(widget);
PurpleAccountManager *manager = NULL;
@@ -788,7 +792,8 @@ account_list_key_pressed_cb(GntWidget *widget, const char *text, gpointer null)
}
static void
-reset_accounts_win(GntWidget *widget, gpointer null)
+reset_accounts_win(G_GNUC_UNUSED GntWidget *widget,
+ G_GNUC_UNUSED gpointer data)
{
accounts.window = NULL;
accounts.tree = NULL;