summaryrefslogtreecommitdiff
path: root/finch
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
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')
-rw-r--r--finch/finchnotifications.c8
-rw-r--r--finch/gntaccount.c19
-rw-r--r--finch/gntblist.c141
-rw-r--r--finch/gntconn.c5
-rw-r--r--finch/gntconv.c77
-rw-r--r--finch/gntdebug.c19
-rw-r--r--finch/gntidle.c6
-rw-r--r--finch/gntmedia.c32
-rw-r--r--finch/gntnotify.c13
-rw-r--r--finch/gntplugin.c16
-rw-r--r--finch/gntrequest.c56
-rw-r--r--finch/gntroomlist.c32
-rw-r--r--finch/gntstatus.c25
-rw-r--r--finch/gntxfer.c8
-rw-r--r--finch/libfinch.c4
-rw-r--r--finch/plugins/gntclipboard/gntclipboard.c9
-rw-r--r--finch/plugins/gntgf/gntgf.c29
-rw-r--r--finch/plugins/gnttinyurl/gnttinyurl.c20
-rw-r--r--finch/plugins/grouping/grouping.c9
-rw-r--r--finch/plugins/lastlog/lastlog.c15
20 files changed, 322 insertions, 221 deletions
diff --git a/finch/finchnotifications.c b/finch/finchnotifications.c
index 7834d085cb..0d223215b5 100644
--- a/finch/finchnotifications.c
+++ b/finch/finchnotifications.c
@@ -293,7 +293,9 @@ finch_notifications_changed_cb(GListModel *model,
}
static void
-finch_notifications_open_cb(G_GNUC_UNUSED GntWidget *w, gpointer data) {
+finch_notifications_open_cb(G_GNUC_UNUSED GntWidget *w,
+ G_GNUC_UNUSED gpointer data)
+{
PurpleNotification *notification = NULL;
notification = gnt_tree_get_selection_data(GNT_TREE(notifications.list));
@@ -305,7 +307,9 @@ finch_notifications_open_cb(G_GNUC_UNUSED GntWidget *w, gpointer data) {
}
static void
-finch_notifications_delete_cb(G_GNUC_UNUSED GntWidget *widget, gpointer data) {
+finch_notifications_delete_cb(G_GNUC_UNUSED GntWidget *widget,
+ G_GNUC_UNUSED gpointer data)
+{
PurpleNotification *notification = NULL;
notification = gnt_tree_get_selection_data(GNT_TREE(notifications.list));
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;
diff --git a/finch/gntblist.c b/finch/gntblist.c
index 019ad54428..c69ec15793 100644
--- a/finch/gntblist.c
+++ b/finch/gntblist.c
@@ -112,7 +112,7 @@ static void add_node(PurpleBlistNode *node, FinchBuddyList *ggblist);
static void node_update(PurpleBuddyList *list, PurpleBlistNode *node);
static void draw_tooltip(FinchBuddyList *ggblist);
static void tooltip_for_buddy(PurpleBuddy *buddy, GString *str, gboolean full);
-static gboolean remove_typing_cb(gpointer null);
+static gboolean remove_typing_cb(gpointer data);
static void remove_peripherals(FinchBuddyList *ggblist);
static const char * get_display_name(PurpleBlistNode *node);
static void savedstatus_changed(PurpleSavedStatus *now, PurpleSavedStatus *old);
@@ -120,12 +120,12 @@ static void blist_show(PurpleBuddyList *list);
static void update_node_display(PurpleBlistNode *buddy,
FinchBuddyList *ggblist);
static void update_buddy_display(PurpleBuddy *buddy, FinchBuddyList *ggblist);
-static gboolean account_autojoin_cb(PurpleConnection *pc, gpointer null);
+static gboolean account_autojoin_cb(PurpleConnection *pc, gpointer data);
static void finch_request_add_buddy(PurpleBuddyList *list,
PurpleAccount *account,
const char *username, const char *grp,
const char *alias);
-static void menu_group_set_cb(GntMenuItem *item, gpointer null);
+static void menu_group_set_cb(GntMenuItem *item, gpointer data);
/* Sort functions */
static int blist_node_compare_position(PurpleBlistNode *n1, PurpleBlistNode *n2);
@@ -384,7 +384,8 @@ blist_update_row_flags(FinchBuddyList *ggblist, PurpleBlistNode *node)
}
static void
-new_node(PurpleBuddyList *list, PurpleBlistNode *node)
+new_node(G_GNUC_UNUSED PurpleBuddyList *list,
+ G_GNUC_UNUSED PurpleBlistNode *node)
{
}
@@ -509,7 +510,7 @@ node_update(PurpleBuddyList *list, PurpleBlistNode *node)
}
static gboolean
-remove_new_empty_group(gpointer data)
+remove_new_empty_group(G_GNUC_UNUSED gpointer data)
{
PurpleBuddyList *list;
FinchBuddyList *ggblist;
@@ -529,7 +530,7 @@ remove_new_empty_group(gpointer data)
}
static void
-add_buddy_cb(void *data, PurpleRequestFields *allfields)
+add_buddy_cb(G_GNUC_UNUSED gpointer data, PurpleRequestFields *allfields)
{
const char *username = purple_request_fields_get_string(allfields, "screenname");
const char *alias = purple_request_fields_get_string(allfields, "alias");
@@ -577,9 +578,9 @@ add_buddy_cb(void *data, PurpleRequestFields *allfields)
}
static void
-finch_request_add_buddy(PurpleBuddyList *list, PurpleAccount *account,
- const char *username, const char *grp,
- const char *alias)
+finch_request_add_buddy(G_GNUC_UNUSED PurpleBuddyList *list,
+ PurpleAccount *account, const char *username,
+ const char *grp, const char *alias)
{
PurpleRequestFields *fields = purple_request_fields_new();
PurpleRequestFieldGroup *group = purple_request_field_group_new(NULL);
@@ -635,7 +636,7 @@ join_chat(PurpleChat *chat)
}
static void
-add_chat_cb(void *data, PurpleRequestFields *allfields)
+add_chat_cb(G_GNUC_UNUSED gpointer data, PurpleRequestFields *allfields)
{
PurpleAccount *account;
const char *alias, *name, *group;
@@ -679,8 +680,9 @@ add_chat_cb(void *data, PurpleRequestFields *allfields)
}
static void
-finch_request_add_chat(PurpleBuddyList *list, PurpleAccount *account,
- PurpleGroup *grp, const char *alias, const char *name)
+finch_request_add_chat(G_GNUC_UNUSED PurpleBuddyList *list,
+ PurpleAccount *account, PurpleGroup *grp,
+ const char *alias, const char *name)
{
PurpleRequestFields *fields = purple_request_fields_new();
PurpleRequestFieldGroup *group = purple_request_field_group_new(NULL);
@@ -911,7 +913,7 @@ add_buddy(PurpleBuddy *buddy, FinchBuddyList *ggblist)
}
static void
-selection_activate(GntWidget *widget, FinchBuddyList *ggblist)
+selection_activate(G_GNUC_UNUSED GntWidget *widget, FinchBuddyList *ggblist)
{
GntTree *tree = GNT_TREE(ggblist->tree);
PurpleBlistNode *node = gnt_tree_get_selection_data(tree);
@@ -1005,7 +1007,7 @@ chat_components_edit_ok(PurpleChat *chat, PurpleRequestFields *allfields)
}
static void
-chat_components_edit(PurpleBlistNode *selected, PurpleChat *chat)
+chat_components_edit(G_GNUC_UNUSED PurpleBlistNode *selected, PurpleChat *chat)
{
PurpleRequestFields *fields = purple_request_fields_new();
PurpleRequestFieldGroup *group = purple_request_field_group_new(NULL);
@@ -1080,19 +1082,20 @@ create_chat_menu(GntMenu *menu, PurpleChat *chat)
}
static void
-finch_add_buddy(PurpleBlistNode *selected, PurpleGroup *grp)
+finch_add_buddy(G_GNUC_UNUSED PurpleBlistNode *selected, PurpleGroup *grp)
{
purple_blist_request_add_buddy(NULL, NULL, grp ? purple_group_get_name(grp) : NULL, NULL);
}
static void
-finch_add_group(PurpleBlistNode *selected, PurpleGroup *grp)
+finch_add_group(G_GNUC_UNUSED PurpleBlistNode *selected,
+ G_GNUC_UNUSED PurpleGroup *grp)
{
purple_blist_request_add_group();
}
static void
-finch_add_chat(PurpleBlistNode *selected, PurpleGroup *grp)
+finch_add_chat(G_GNUC_UNUSED PurpleBlistNode *selected, PurpleGroup *grp)
{
purple_blist_request_add_chat(NULL, grp, NULL, NULL);
}
@@ -1132,19 +1135,21 @@ gpointer finch_retrieve_user_info(PurpleConnection *conn, const char *name)
}
static void
-finch_blist_get_buddy_info_cb(PurpleBlistNode *selected, PurpleBuddy *buddy)
+finch_blist_get_buddy_info_cb(G_GNUC_UNUSED PurpleBlistNode *selected,
+ PurpleBuddy *buddy)
{
finch_retrieve_user_info(purple_account_get_connection(purple_buddy_get_account(buddy)), purple_buddy_get_name(buddy));
}
static void
-finch_blist_menu_send_file_cb(PurpleBlistNode *selected, PurpleBuddy *buddy)
+finch_blist_menu_send_file_cb(G_GNUC_UNUSED PurpleBlistNode *selected,
+ PurpleBuddy *buddy)
{
purple_serv_send_file(purple_account_get_connection(purple_buddy_get_account(buddy)), purple_buddy_get_name(buddy), NULL);
}
static void
-toggle_show_offline(GntMenuItem *item, gpointer buddy)
+toggle_show_offline(G_GNUC_UNUSED GntMenuItem *item, gpointer buddy)
{
purple_blist_node_set_bool(buddy, "show_offline",
!purple_blist_node_get_bool(buddy, "show_offline"));
@@ -1246,7 +1251,8 @@ rename_blist_node(PurpleBlistNode *node, const char *newname)
}
static void
-finch_blist_rename_node_cb(PurpleBlistNode *selected, PurpleBlistNode *node)
+finch_blist_rename_node_cb(G_GNUC_UNUSED PurpleBlistNode *selected,
+ PurpleBlistNode *node)
{
const char *name = NULL;
char *prompt;
@@ -1332,7 +1338,8 @@ finch_blist_remove_node(PurpleBlistNode *node)
}
static void
-finch_blist_remove_node_cb(PurpleBlistNode *selected, PurpleBlistNode *node)
+finch_blist_remove_node_cb(G_GNUC_UNUSED PurpleBlistNode *selected,
+ PurpleBlistNode *node)
{
PurpleAccount *account = NULL;
char *primary;
@@ -1457,7 +1464,8 @@ finch_blist_place_tagged(PurpleBlistNode *target)
}
static void
-context_menu_destroyed(GntWidget *widget, FinchBuddyList *ggblist)
+context_menu_destroyed(G_GNUC_UNUSED GntWidget *widget,
+ FinchBuddyList *ggblist)
{
ggblist->context = NULL;
}
@@ -1708,22 +1716,23 @@ draw_tooltip(FinchBuddyList *ggblist)
}
static void
-selection_changed(GntWidget *widget, gpointer old, gpointer current,
- FinchBuddyList *ggblist)
+selection_changed(G_GNUC_UNUSED GntWidget *widget, G_GNUC_UNUSED gpointer old,
+ G_GNUC_UNUSED gpointer current, FinchBuddyList *ggblist)
{
remove_peripherals(ggblist);
draw_tooltip(ggblist);
}
static gboolean
-context_menu(GntWidget *widget, FinchBuddyList *ggblist)
+context_menu(G_GNUC_UNUSED GntWidget *widget, FinchBuddyList *ggblist)
{
draw_context_menu(ggblist);
return TRUE;
}
static gboolean
-key_pressed(GntWidget *widget, const char *text, FinchBuddyList *ggblist)
+key_pressed(G_GNUC_UNUSED GntWidget *widget, const char *text,
+ FinchBuddyList *ggblist)
{
if (text[0] == 27 && text[1] == 0) {
/* Escape was pressed */
@@ -1776,15 +1785,15 @@ update_buddy_display(PurpleBuddy *buddy, FinchBuddyList *ggblist)
}
static void
-buddy_status_changed(PurpleBuddy *buddy, PurpleStatus *old, PurpleStatus *now,
- FinchBuddyList *ggblist)
+buddy_status_changed(PurpleBuddy *buddy, G_GNUC_UNUSED PurpleStatus *old,
+ G_GNUC_UNUSED PurpleStatus *now, FinchBuddyList *ggblist)
{
update_buddy_display(buddy, ggblist);
}
static void
-buddy_idle_changed(PurpleBuddy *buddy, int old, int new,
- FinchBuddyList *ggblist)
+buddy_idle_changed(PurpleBuddy *buddy, G_GNUC_UNUSED int old,
+ G_GNUC_UNUSED int new, FinchBuddyList *ggblist)
{
update_buddy_display(buddy, ggblist);
}
@@ -1799,7 +1808,7 @@ remove_peripherals(FinchBuddyList *ggblist)
}
static void
-size_changed_cb(GntWidget *w, int wi, int h)
+size_changed_cb(GntWidget *w, G_GNUC_UNUSED int wi, G_GNUC_UNUSED int h)
{
int width, height;
gnt_widget_get_size(w, &width, &height);
@@ -1808,14 +1817,15 @@ size_changed_cb(GntWidget *w, int wi, int h)
}
static void
-save_position_cb(GntWidget *w, int x, int y)
+save_position_cb(G_GNUC_UNUSED GntWidget *w, int x, int y)
{
purple_prefs_set_int(PREF_ROOT "/position/x", x);
purple_prefs_set_int(PREF_ROOT "/position/y", y);
}
static void
-reset_blist_window(GntWidget *window, gpointer null)
+reset_blist_window(G_GNUC_UNUSED GntWidget *window,
+ G_GNUC_UNUSED gpointer data)
{
purple_signals_disconnect_by_handle(finch_blist_get_handle());
@@ -1922,7 +1932,8 @@ populate_status_dropdown(void)
}
static void
-redraw_blist(const char *name, PurplePrefType type, gconstpointer val, gpointer data)
+redraw_blist(G_GNUC_UNUSED const char *name, G_GNUC_UNUSED PurplePrefType type,
+ G_GNUC_UNUSED gconstpointer val, G_GNUC_UNUSED gpointer data)
{
PurpleBlistNode *sel;
FinchBlistManager *manager;
@@ -2004,7 +2015,7 @@ finch_blist_init(void)
}
static gboolean
-remove_typing_cb(gpointer null)
+remove_typing_cb(G_GNUC_UNUSED gpointer data)
{
PurpleSavedStatus *current;
const char *message, *newmessage;
@@ -2056,7 +2067,10 @@ end:
}
static void
-status_selection_changed(GntComboBox *box, StatusBoxItem *old, StatusBoxItem *now, gpointer null)
+status_selection_changed(G_GNUC_UNUSED GntComboBox *box,
+ G_GNUC_UNUSED StatusBoxItem *old,
+ StatusBoxItem *now,
+ G_GNUC_UNUSED gpointer data)
{
gnt_entry_set_text(GNT_ENTRY(ggblist->statustext), NULL);
if (now->type == STATUS_SAVED_POPULAR)
@@ -2089,7 +2103,8 @@ status_selection_changed(GntComboBox *box, StatusBoxItem *old, StatusBoxItem *no
}
static gboolean
-status_text_changed(GntEntry *entry, const char *text, gpointer null)
+status_text_changed(G_GNUC_UNUSED GntEntry *entry, const char *text,
+ G_GNUC_UNUSED gpointer data)
{
if ((text[0] == 27 || (text[0] == '\t' && text[1] == '\0')) && ggblist->typing == 0)
return FALSE;
@@ -2110,7 +2125,8 @@ status_text_changed(GntEntry *entry, const char *text, gpointer null)
}
static void
-savedstatus_changed(PurpleSavedStatus *now, PurpleSavedStatus *old)
+savedstatus_changed(PurpleSavedStatus *now,
+ G_GNUC_UNUSED PurpleSavedStatus *old)
{
GList *list;
PurpleStatusPrimitive prim;
@@ -2232,7 +2248,7 @@ blist_node_compare_status(PurpleBlistNode *n1, PurpleBlistNode *n2)
}
static void
-plugin_action(GntMenuItem *item, gpointer data)
+plugin_action(G_GNUC_UNUSED GntMenuItem *item, G_GNUC_UNUSED gpointer data)
{
/* TODO: Convert to GAction/GMenu. */
#if 0
@@ -2243,7 +2259,8 @@ plugin_action(GntMenuItem *item, gpointer data)
}
static void
-build_plugin_actions(GntMenuItem *item, PurplePlugin *plugin)
+build_plugin_actions(G_GNUC_UNUSED GntMenuItem *item,
+ G_GNUC_UNUSED PurplePlugin *plugin)
{
/* TODO: port to GAction/GMenu. */
#if 0
@@ -2273,16 +2290,16 @@ build_plugin_actions(GntMenuItem *item, PurplePlugin *plugin)
}
static void
-protocol_action(GntMenuItem *item, gpointer data)
-{
+protocol_action(G_GNUC_UNUSED GntMenuItem *item, gpointer data) {
PurpleProtocolAction *action = data;
if (action && action->callback)
action->callback(action);
}
static void
-build_protocol_actions(GntMenuItem *item, PurpleProtocol *protocol,
- PurpleConnection *gc)
+build_protocol_actions(G_GNUC_UNUSED GntMenuItem *item,
+ G_GNUC_UNUSED PurpleProtocol *protocol,
+ G_GNUC_UNUSED PurpleConnection *gc)
{
/* TODO: port to PurpleProtocolActions. */
#if 0
@@ -2350,7 +2367,7 @@ buddy_signed_on_off_cb(gpointer data)
}
static void
-buddy_signed_on_off(PurpleBuddy* buddy, gpointer null)
+buddy_signed_on_off(PurpleBuddy* buddy, G_GNUC_UNUSED gpointer data)
{
g_idle_add(buddy_signed_on_off_cb, buddy);
}
@@ -2391,8 +2408,9 @@ reconstruct_plugins_menu(void)
}
static void
-reconstruct_plugins_menu_cb(GObject *plugin_manager, GPluginPlugin *plugin,
- gpointer data)
+reconstruct_plugins_menu_cb(G_GNUC_UNUSED GObject *plugin_manager,
+ G_GNUC_UNUSED GPluginPlugin *plugin,
+ G_GNUC_UNUSED gpointer data)
{
reconstruct_plugins_menu();
}
@@ -2482,25 +2500,25 @@ auto_join_chats(gpointer data)
}
static gboolean
-account_autojoin_cb(PurpleConnection *gc, gpointer null)
+account_autojoin_cb(PurpleConnection *gc, G_GNUC_UNUSED gpointer data)
{
g_idle_add(auto_join_chats, gc);
return TRUE;
}
-static void toggle_pref_cb(GntMenuItem *item, gpointer n)
+static void toggle_pref_cb(G_GNUC_UNUSED GntMenuItem *item, gpointer n)
{
purple_prefs_set_bool(n, !purple_prefs_get_bool(n));
}
-static void sort_blist_change_cb(GntMenuItem *item, gpointer n)
+static void sort_blist_change_cb(G_GNUC_UNUSED GntMenuItem *item, gpointer n)
{
purple_prefs_set_string(PREF_ROOT "/sort_type", n);
}
/* send_im_select* -- Xerox */
static void
-send_im_select_cb(gpointer data, PurpleRequestFields *fields)
+send_im_select_cb(G_GNUC_UNUSED gpointer data, PurpleRequestFields *fields)
{
PurpleAccount *account;
const char *username;
@@ -2514,7 +2532,7 @@ send_im_select_cb(gpointer data, PurpleRequestFields *fields)
}
static void
-send_im_select(GntMenuItem *item, gpointer n)
+send_im_select(G_GNUC_UNUSED GntMenuItem *item, G_GNUC_UNUSED gpointer n)
{
PurpleRequestFields *fields;
PurpleRequestFieldGroup *group;
@@ -2547,7 +2565,7 @@ send_im_select(GntMenuItem *item, gpointer n)
}
static void
-join_chat_select_cb(gpointer data, PurpleRequestFields *fields)
+join_chat_select_cb(G_GNUC_UNUSED gpointer data, PurpleRequestFields *fields)
{
PurpleAccount *account;
const char *name;
@@ -2590,7 +2608,7 @@ join_chat_select_cb(gpointer data, PurpleRequestFields *fields)
}
static void
-join_chat_select(GntMenuItem *item, gpointer n)
+join_chat_select(G_GNUC_UNUSED GntMenuItem *item, G_GNUC_UNUSED gpointer n)
{
PurpleRequestFields *fields;
PurpleRequestFieldGroup *group;
@@ -2621,25 +2639,25 @@ join_chat_select(GntMenuItem *item, gpointer n)
}
static void
-menu_add_buddy_cb(GntMenuItem *item, gpointer null)
+menu_add_buddy_cb(G_GNUC_UNUSED GntMenuItem *item, G_GNUC_UNUSED gpointer data)
{
purple_blist_request_add_buddy(NULL, NULL, NULL, NULL);
}
static void
-menu_add_chat_cb(GntMenuItem *item, gpointer null)
+menu_add_chat_cb(G_GNUC_UNUSED GntMenuItem *item, G_GNUC_UNUSED gpointer data)
{
purple_blist_request_add_chat(NULL, NULL, NULL, NULL);
}
static void
-menu_add_group_cb(GntMenuItem *item, gpointer null)
+menu_add_group_cb(G_GNUC_UNUSED GntMenuItem *item, G_GNUC_UNUSED gpointer data)
{
purple_blist_request_add_group();
}
static void
-menu_group_set_cb(GntMenuItem *item, gpointer null)
+menu_group_set_cb(GntMenuItem *item, G_GNUC_UNUSED gpointer data)
{
const char *id = g_object_get_data(G_OBJECT(item), "grouping-id");
purple_prefs_set_string(PREF_ROOT "/grouping", id);
@@ -2753,14 +2771,15 @@ finch_blist_show(void)
}
static void
-group_collapsed(GntWidget *widget, PurpleBlistNode *node, gboolean collapsed, gpointer null)
+group_collapsed(G_GNUC_UNUSED GntWidget *widget, PurpleBlistNode *node,
+ gboolean collapsed, G_GNUC_UNUSED gpointer data)
{
if (PURPLE_IS_GROUP(node))
purple_blist_node_set_bool(node, "collapsed", collapsed);
}
static void
-blist_show(PurpleBuddyList *list)
+blist_show(G_GNUC_UNUSED PurpleBuddyList *list)
{
GPluginManager *plugin_manager = NULL;
diff --git a/finch/gntconn.c b/finch/gntconn.c
index f8127c321e..0f5e1535c0 100644
--- a/finch/gntconn.c
+++ b/finch/gntconn.c
@@ -83,8 +83,9 @@ do_signon(gpointer data)
}
static void
-finch_connection_report_disconnect(PurpleConnection *gc, PurpleConnectionError reason,
- const char *text)
+finch_connection_report_disconnect(PurpleConnection *gc,
+ PurpleConnectionError reason,
+ G_GNUC_UNUSED const char *text)
{
FinchAutoRecon *info;
PurpleAccount *account = purple_connection_get_account(gc);
diff --git a/finch/gntconv.c b/finch/gntconv.c
index ff8bb1fc8b..d579dec582 100644
--- a/finch/gntconv.c
+++ b/finch/gntconv.c
@@ -64,7 +64,7 @@ find_chat_for_conversation(PurpleConversation *conv)
}
static void
-send_typing_notification(GntWidget *w, FinchConv *ggconv)
+send_typing_notification(G_GNUC_UNUSED GntWidget *w, FinchConv *ggconv)
{
const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry));
gboolean empty = (!text || !*text || (*text == '/'));
@@ -95,7 +95,7 @@ send_typing_notification(GntWidget *w, FinchConv *ggconv)
}
static void
-entry_key_pressed(GntWidget *w, FinchConv *ggconv)
+entry_key_pressed(G_GNUC_UNUSED GntWidget *w, FinchConv *ggconv)
{
const char *text = gnt_entry_get_text(GNT_ENTRY(ggconv->entry));
if (*text == '/' && *(text + 1) != '/')
@@ -164,7 +164,7 @@ entry_key_pressed(GntWidget *w, FinchConv *ggconv)
}
static void
-closing_window(GntWidget *window, FinchConv *ggconv)
+closing_window(G_GNUC_UNUSED GntWidget *window, FinchConv *ggconv)
{
GList *list = ggconv->list;
ggconv->window = NULL;
@@ -176,7 +176,8 @@ closing_window(GntWidget *window, FinchConv *ggconv)
}
static void
-size_changed_cb(GntWidget *widget, int width, int height)
+size_changed_cb(GntWidget *widget, G_GNUC_UNUSED int width,
+ G_GNUC_UNUSED int height)
{
int w, h;
gnt_widget_get_size(widget, &w, &h);
@@ -185,7 +186,7 @@ size_changed_cb(GntWidget *widget, int width, int height)
}
static void
-save_position_cb(GntWidget *w, int x, int y)
+save_position_cb(G_GNUC_UNUSED GntWidget *w, int x, int y)
{
purple_prefs_set_int(PREF_ROOT "/position/x", x);
purple_prefs_set_int(PREF_ROOT "/position/y", y);
@@ -243,7 +244,8 @@ get_conversation_title(PurpleConversation *conv, PurpleAccount *account) {
}
static void
-update_buddy_typing(PurpleAccount *account, const char *who, gpointer null)
+update_buddy_typing(PurpleAccount *account, const char *who,
+ G_GNUC_UNUSED gpointer data)
{
FinchConv *ggc;
PurpleConversation *conv;
@@ -286,14 +288,14 @@ update_buddy_typing(PurpleAccount *account, const char *who, gpointer null)
}
static void
-chat_left_cb(PurpleConversation *conv, gpointer null)
+chat_left_cb(PurpleConversation *conv, G_GNUC_UNUSED gpointer data)
{
purple_conversation_write_system_message(conv,
_("You have left this chat."), 0);
}
static void
-buddy_signed_on_off(PurpleBuddy *buddy, gpointer null)
+buddy_signed_on_off(PurpleBuddy *buddy, G_GNUC_UNUSED gpointer data)
{
PurpleConversation *im = find_im_with_contact(purple_buddy_get_account(buddy), purple_buddy_get_name(buddy));
if (im == NULL)
@@ -302,7 +304,7 @@ buddy_signed_on_off(PurpleBuddy *buddy, gpointer null)
}
static void
-account_signed_on_off(PurpleConnection *gc, gpointer null)
+account_signed_on_off(PurpleConnection *gc, G_GNUC_UNUSED gpointer data)
{
PurpleConversationManager *manager;
GList *list, *l;
@@ -418,7 +420,8 @@ finch_conv_get_handle(void)
}
static void
-cleared_message_history_cb(PurpleConversation *conv, gpointer data)
+cleared_message_history_cb(PurpleConversation *conv,
+ G_GNUC_UNUSED gpointer data)
{
FinchConv *ggc = FINCH_CONV(conv);
if (ggc)
@@ -461,7 +464,7 @@ conv_updated(PurpleConversation *conv, PurpleConversationUpdateType type)
}
static void
-send_file_cb(GntMenuItem *item, gpointer ggconv)
+send_file_cb(G_GNUC_UNUSED GntMenuItem *item, gpointer ggconv)
{
FinchConv *ggc = ggconv;
purple_serv_send_file(purple_conversation_get_connection(ggc->active_conv),
@@ -469,7 +472,7 @@ send_file_cb(GntMenuItem *item, gpointer ggconv)
}
static void
-get_info_cb(GntMenuItem *item, gpointer ggconv)
+get_info_cb(G_GNUC_UNUSED GntMenuItem *item, gpointer ggconv)
{
FinchConv *ggc = ggconv;
finch_retrieve_user_info(purple_conversation_get_connection(ggc->active_conv),
@@ -477,14 +480,15 @@ get_info_cb(GntMenuItem *item, gpointer ggconv)
}
static void
-toggle_timestamps_cb(GntMenuItem *item, gpointer ggconv)
+toggle_timestamps_cb(G_GNUC_UNUSED GntMenuItem *item,
+ G_GNUC_UNUSED gpointer data)
{
purple_prefs_set_bool(PREF_ROOT "/timestamps",
!purple_prefs_get_bool(PREF_ROOT "/timestamps"));
}
static void
-send_to_cb(GntMenuItem *m, gpointer n)
+send_to_cb(GntMenuItem *m, G_GNUC_UNUSED gpointer n)
{
PurpleAccount *account = g_object_get_data(G_OBJECT(m), "purple_account");
gchar *buddy = g_object_get_data(G_OBJECT(m), "purple_buddy_name");
@@ -545,7 +549,7 @@ generate_send_to_menu(FinchConv *ggc)
}
static void
-invite_cb(GntMenuItem *item, gpointer ggconv)
+invite_cb(G_GNUC_UNUSED GntMenuItem *item, gpointer ggconv)
{
FinchConv *fc = ggconv;
PurpleChatConversation *chat = PURPLE_CHAT_CONVERSATION(fc->active_conv);
@@ -553,7 +557,8 @@ invite_cb(GntMenuItem *item, gpointer ggconv)
}
static void
-plugin_changed_cb(GObject *plugin_manager, GPluginPlugin *p, gpointer data)
+plugin_changed_cb(G_GNUC_UNUSED GObject *plugin_manager,
+ G_GNUC_UNUSED GPluginPlugin *p, gpointer data)
{
gg_extended_menu(data);
}
@@ -644,7 +649,7 @@ create_conv_from_userlist(GntWidget *widget, FinchConv *fc)
}
static void
-gained_focus_cb(GntWindow *window, FinchConv *fc)
+gained_focus_cb(G_GNUC_UNUSED GntWindow *window, FinchConv *fc)
{
GList *iter;
for (iter = fc->list; iter; iter = iter->next) {
@@ -682,8 +687,10 @@ gg_setup_commands(FinchConv *fconv, gboolean remove_first)
}
static void
-cmd_added_cb(const char *cmd, PurpleCmdPriority prior, PurpleCmdFlag flags,
- FinchConv *fconv)
+cmd_added_cb(G_GNUC_UNUSED const char *cmd,
+ G_GNUC_UNUSED PurpleCmdPriority prior,
+ G_GNUC_UNUSED PurpleCmdFlag flags,
+ FinchConv *fconv)
{
gg_setup_commands(fconv, TRUE);
}
@@ -1081,8 +1088,9 @@ finch_conv_get_ui_ops(void)
/* Xerox */
static PurpleCmdRet
-say_command_cb(PurpleConversation *conv,
- const char *cmd, char **args, char **error, void *data)
+say_command_cb(PurpleConversation *conv, G_GNUC_UNUSED const char *cmd,
+ char **args, G_GNUC_UNUSED char **error,
+ G_GNUC_UNUSED gpointer data)
{
purple_conversation_send(conv, args[0]);
@@ -1091,8 +1099,9 @@ say_command_cb(PurpleConversation *conv,
/* Xerox */
static PurpleCmdRet
-me_command_cb(PurpleConversation *conv,
- const char *cmd, char **args, char **error, void *data)
+me_command_cb(PurpleConversation *conv, G_GNUC_UNUSED const char *cmd,
+ char **args, G_GNUC_UNUSED char **error,
+ G_GNUC_UNUSED gpointer data)
{
char *tmp;
@@ -1105,8 +1114,9 @@ me_command_cb(PurpleConversation *conv,
/* Xerox */
static PurpleCmdRet
-debug_command_cb(PurpleConversation *conv,
- const char *cmd, char **args, char **error, void *data)
+debug_command_cb(PurpleConversation *conv, G_GNUC_UNUSED const char *cmd,
+ char **args, G_GNUC_UNUSED char **error,
+ G_GNUC_UNUSED gpointer data)
{
char *tmp, *markup;
@@ -1155,8 +1165,9 @@ debug_command_cb(PurpleConversation *conv,
/* Xerox */
static PurpleCmdRet
-help_command_cb(PurpleConversation *conv,
- const char *cmd, char **args, char **error, void *data)
+help_command_cb(PurpleConversation *conv, G_GNUC_UNUSED const char *cmd,
+ char **args, G_GNUC_UNUSED char **error,
+ G_GNUC_UNUSED gpointer data)
{
GList *l, *text;
GString *s;
@@ -1195,7 +1206,9 @@ help_command_cb(PurpleConversation *conv,
}
static PurpleCmdRet
-cmd_show_window(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data)
+cmd_show_window(G_GNUC_UNUSED PurpleConversation *conv,
+ G_GNUC_UNUSED const char *cmd, G_GNUC_UNUSED char **args,
+ G_GNUC_UNUSED char **error, gpointer data)
{
void (*callback)(void) = data;
callback();
@@ -1203,7 +1216,9 @@ cmd_show_window(PurpleConversation *conv, const char *cmd, char **args, char **e
}
static PurpleCmdRet
-cmd_message_color(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data)
+cmd_message_color(G_GNUC_UNUSED PurpleConversation *conv,
+ G_GNUC_UNUSED const char *cmd, char **args, char **error,
+ G_GNUC_UNUSED gpointer data)
{
int *msgclass = NULL;
int fg, bg;
@@ -1244,7 +1259,9 @@ cmd_message_color(PurpleConversation *conv, const char *cmd, char **args, char *
}
static PurpleCmdRet
-users_command_cb(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer data)
+users_command_cb(PurpleConversation *conv, G_GNUC_UNUSED const char *cmd,
+ G_GNUC_UNUSED char **args, G_GNUC_UNUSED char **error,
+ G_GNUC_UNUSED gpointer data)
{
FinchConv *fc = FINCH_CONV(conv);
FinchConvChat *ch;
diff --git a/finch/gntdebug.c b/finch/gntdebug.c
index 03c1f4028c..187896f913 100644
--- a/finch/gntdebug.c
+++ b/finch/gntdebug.c
@@ -45,7 +45,8 @@ struct _FinchDebugUi
};
static gboolean
-handle_fprintf_stderr_cb(GIOChannel *source, GIOCondition cond, gpointer null)
+handle_fprintf_stderr_cb(GIOChannel *source, G_GNUC_UNUSED GIOCondition cond,
+ G_GNUC_UNUSED gpointer data)
{
gssize size;
char message[1024];
@@ -98,13 +99,13 @@ static struct
} debug;
static void
-reset_debug_win(GntWidget *w, gpointer null)
+reset_debug_win(G_GNUC_UNUSED GntWidget *w, G_GNUC_UNUSED gpointer data)
{
debug.window = debug.tview = debug.search = NULL;
}
static void
-clear_debug_win(GntWidget *w, GntTextView *tv)
+clear_debug_win(G_GNUC_UNUSED GntWidget *w, GntTextView *tv)
{
gnt_text_view_clear(tv);
}
@@ -116,7 +117,7 @@ print_stderr(const char *string)
}
static void
-toggle_pause(GntWidget *w, gpointer n)
+toggle_pause(G_GNUC_UNUSED GntWidget *w, G_GNUC_UNUSED gpointer n)
{
debug.paused = !debug.paused;
}
@@ -203,7 +204,8 @@ finch_debug_g_log_handler(GLogLevelFlags log_level, const GLogField *fields,
}
static void
-size_changed_cb(GntWidget *widget, int oldw, int oldh)
+size_changed_cb(GntWidget *widget, G_GNUC_UNUSED int oldw,
+ G_GNUC_UNUSED int oldh)
{
int w, h;
gnt_widget_get_size(widget, &w, &h);
@@ -219,7 +221,7 @@ for_real(gpointer entry)
}
static void
-update_filter_string(GntEntry *entry, gpointer null)
+update_filter_string(GntEntry *entry, G_GNUC_UNUSED gpointer data)
{
int id = g_timeout_add_seconds(1, for_real, entry);
g_object_set_data_full(G_OBJECT(entry), "update-filter", GINT_TO_POINTER(id),
@@ -227,7 +229,8 @@ update_filter_string(GntEntry *entry, gpointer null)
}
static void
-file_save(GntFileSel *fs, const char *path, const char *file, GntTextView *tv)
+file_save(GntFileSel *fs, const char *path, G_GNUC_UNUSED const char *file,
+ GntTextView *tv)
{
FILE *fp;
GDateTime *date = NULL;
@@ -251,7 +254,7 @@ file_save(GntFileSel *fs, const char *path, const char *file, GntTextView *tv)
}
static void
-save_debug_win(GntWidget *w, GntTextView *tv)
+save_debug_win(G_GNUC_UNUSED GntWidget *w, GntTextView *tv)
{
GntWidget *window = gnt_file_sel_new();
GntFileSel *sel = GNT_FILE_SEL(window);
diff --git a/finch/gntidle.c b/finch/gntidle.c
index be601e9f8b..22861e1826 100644
--- a/finch/gntidle.c
+++ b/finch/gntidle.c
@@ -30,7 +30,7 @@ struct _FinchIdle {
* PurpleIdleUi implementation
*****************************************************************************/
static time_t
-finch_idle_get_idle_time(PurpleIdleUi *ui) {
+finch_idle_get_idle_time(G_GNUC_UNUSED PurpleIdleUi *ui) {
return gnt_wm_get_idle_time();
}
@@ -54,11 +54,11 @@ G_DEFINE_TYPE_EXTENDED(
);
static void
-finch_idle_init(FinchIdle *idle) {
+finch_idle_init(G_GNUC_UNUSED FinchIdle *idle) {
}
static void
-finch_idle_class_init(FinchIdleClass *klass) {
+finch_idle_class_init(G_GNUC_UNUSED FinchIdleClass *klass) {
}
/******************************************************************************
diff --git a/finch/gntmedia.c b/finch/gntmedia.c
index 4a04d62e1a..6f33c5e157 100644
--- a/finch/gntmedia.c
+++ b/finch/gntmedia.c
@@ -138,7 +138,8 @@ finch_media_emit_message(FinchMedia *gntmedia, const char *msg)
}
static void
-finch_media_connected_cb(PurpleMedia *media, FinchMedia *gntmedia)
+finch_media_connected_cb(G_GNUC_UNUSED PurpleMedia *media,
+ FinchMedia *gntmedia)
{
GntWidget *parent;
@@ -161,7 +162,7 @@ finch_media_connected_cb(PurpleMedia *media, FinchMedia *gntmedia)
}
static void
-finch_media_wait_cb(PurpleMedia *media, FinchMedia *gntmedia)
+finch_media_wait_cb(G_GNUC_UNUSED PurpleMedia *media, FinchMedia *gntmedia)
{
GntWidget *parent;
@@ -227,8 +228,12 @@ finch_media_state_changed_cb(PurpleMedia *media, PurpleMediaState state,
}
static void
-finch_media_stream_info_cb(PurpleMedia *media, PurpleMediaInfoType type,
- gchar *sid, gchar *name, gboolean local, FinchMedia *gntmedia)
+finch_media_stream_info_cb(G_GNUC_UNUSED PurpleMedia *media,
+ PurpleMediaInfoType type,
+ G_GNUC_UNUSED gchar *sid,
+ G_GNUC_UNUSED gchar *name,
+ G_GNUC_UNUSED gboolean local,
+ FinchMedia *gntmedia)
{
if (type == PURPLE_MEDIA_INFO_REJECT) {
finch_media_emit_message(gntmedia,
@@ -237,21 +242,21 @@ finch_media_stream_info_cb(PurpleMedia *media, PurpleMediaInfoType type,
}
static void
-finch_media_accept_cb(PurpleMedia *media, GntWidget *widget)
+finch_media_accept_cb(PurpleMedia *media, G_GNUC_UNUSED GntWidget *widget)
{
purple_media_stream_info(media, PURPLE_MEDIA_INFO_ACCEPT,
NULL, NULL, TRUE);
}
static void
-finch_media_hangup_cb(PurpleMedia *media, GntWidget *widget)
+finch_media_hangup_cb(PurpleMedia *media, G_GNUC_UNUSED GntWidget *widget)
{
purple_media_stream_info(media, PURPLE_MEDIA_INFO_HANGUP,
NULL, NULL, TRUE);
}
static void
-finch_media_reject_cb(PurpleMedia *media, GntWidget *widget)
+finch_media_reject_cb(PurpleMedia *media, G_GNUC_UNUSED GntWidget *widget)
{
purple_media_stream_info(media, PURPLE_MEDIA_INFO_REJECT,
NULL, NULL, TRUE);
@@ -317,7 +322,8 @@ finch_media_new(PurpleMedia *media)
}
static void
-gntmedia_message_cb(FinchMedia *gntmedia, const char *msg, PurpleConversation *conv)
+gntmedia_message_cb(G_GNUC_UNUSED FinchMedia *gntmedia, const char *msg,
+ PurpleConversation *conv)
{
if (PURPLE_IS_IM_CONVERSATION(conv)) {
purple_conversation_write_system_message(conv, msg, 0);
@@ -325,8 +331,9 @@ gntmedia_message_cb(FinchMedia *gntmedia, const char *msg, PurpleConversation *c
}
static gboolean
-finch_new_media(PurpleMediaManager *manager, PurpleMedia *media,
- PurpleAccount *account, gchar *name, gpointer null)
+finch_new_media(G_GNUC_UNUSED PurpleMediaManager *manager, PurpleMedia *media,
+ PurpleAccount *account, gchar *name,
+ G_GNUC_UNUSED gpointer data)
{
GntWidget *gntmedia;
PurpleConversation *conv;
@@ -341,8 +348,9 @@ finch_new_media(PurpleMediaManager *manager, PurpleMedia *media,
}
static PurpleCmdRet
-call_cmd_cb(PurpleConversation *conv, const char *cmd, char **args,
- char **error, gpointer data)
+call_cmd_cb(PurpleConversation *conv, G_GNUC_UNUSED const char *cmd,
+ G_GNUC_UNUSED char **args, G_GNUC_UNUSED char **error,
+ G_GNUC_UNUSED gpointer data)
{
PurpleAccount *account = purple_conversation_get_account(conv);
diff --git a/finch/gntnotify.c b/finch/gntnotify.c
index 49ea0c5b6b..20e435eb83 100644
--- a/finch/gntnotify.c
+++ b/finch/gntnotify.c
@@ -36,8 +36,9 @@ notify_msg_window_destroy_cb(GntWidget *window, PurpleNotifyType type)
static void *
finch_notify_common(PurpleNotifyType ntype, PurpleNotifyMessageType msgtype,
- const char *title, const char *primary, const char *secondary,
- PurpleRequestCommonParameters *cpar)
+ const char *title, const char *primary,
+ const char *secondary,
+ G_GNUC_UNUSED PurpleRequestCommonParameters *cpar)
{
GntWidget *window, *button;
GntTextFormatFlags pf = 0, sf = 0;
@@ -166,7 +167,7 @@ userinfo_hash(PurpleAccount *account, const char *who)
}
static void
-remove_userinfo(GntWidget *widget, gpointer key)
+remove_userinfo(G_GNUC_UNUSED GntWidget *widget, gpointer key)
{
g_hash_table_remove(userinfo, key);
}
@@ -269,8 +270,8 @@ notify_button_activated(GntWidget *widget, PurpleNotifySearchButton *b)
}
static void
-finch_notify_sr_new_rows(PurpleConnection *gc,
- PurpleNotifySearchResults *results, void *data)
+finch_notify_sr_new_rows(G_GNUC_UNUSED PurpleConnection *gc,
+ PurpleNotifySearchResults *results, gpointer data)
{
GntWindow *window = GNT_WINDOW(data);
GntTree *tree = GNT_TREE(g_object_get_data(G_OBJECT(window), "tree-widget"));
@@ -289,7 +290,7 @@ finch_notify_sr_new_rows(PurpleConnection *gc,
}
static void
-notify_sr_destroy_cb(GntWidget *window, void *data)
+notify_sr_destroy_cb(GntWidget *window, G_GNUC_UNUSED gpointer data)
{
purple_notify_close(PURPLE_NOTIFY_SEARCHRESULTS, window);
}
diff --git a/finch/gntplugin.c b/finch/gntplugin.c
index e3cdc26636..281514002c 100644
--- a/finch/gntplugin.c
+++ b/finch/gntplugin.c
@@ -107,7 +107,7 @@ finch_plugin_info_get_property(GObject *obj, guint param_id, GValue *value,
}
static void
-finch_plugin_info_init(FinchPluginInfo *info)
+finch_plugin_info_init(G_GNUC_UNUSED FinchPluginInfo *info)
{
}
@@ -216,7 +216,8 @@ finch_plugin_pref_close(PurplePlugin *plugin)
}
static void
-plugin_toggled_cb(GntWidget *tree, PurplePlugin *plugin, gpointer null)
+plugin_toggled_cb(GntWidget *tree, PurplePlugin *plugin,
+ G_GNUC_UNUSED gpointer data)
{
GError *error = NULL;
@@ -251,7 +252,8 @@ finch_plugins_save_loaded(void)
}
static void
-selection_changed(GntWidget *widget, gpointer old, gpointer current, gpointer null)
+selection_changed(GntWidget *widget, G_GNUC_UNUSED gpointer old,
+ gpointer current, G_GNUC_UNUSED gpointer data)
{
PurplePlugin *plugin = current;
const gchar *filename;
@@ -308,7 +310,8 @@ selection_changed(GntWidget *widget, gpointer old, gpointer current, gpointer nu
}
static void
-reset_plugin_window(GntWidget *window, gpointer null)
+reset_plugin_window(G_GNUC_UNUSED GntWidget *window,
+ G_GNUC_UNUSED gpointer data)
{
GList *list = g_object_get_data(G_OBJECT(plugins.tree), "seen-list");
purple_prefs_set_path_list("/finch/plugins/seen", list);
@@ -338,7 +341,7 @@ plugin_compare(PurplePlugin *p1, PurplePlugin *p2)
}
static void
-remove_confwin(GntWidget *window, gpointer _plugin)
+remove_confwin(G_GNUC_UNUSED GntWidget *window, gpointer _plugin)
{
PurplePlugin *plugin = _plugin;
PurplePluginInfo *info = purple_plugin_get_info(plugin);
@@ -353,7 +356,8 @@ close_plugin_info_request_cb(PurplePluginInfo *info)
}
static void
-configure_plugin_cb(GntWidget *button, gpointer null)
+configure_plugin_cb(G_GNUC_UNUSED GntWidget *button,
+ G_GNUC_UNUSED gpointer data)
{
PurplePlugin *plugin;
PurplePluginInfo *info;
diff --git a/finch/gntrequest.c b/finch/gntrequest.c
index 7f0cb9d412..8d15f17d65 100644
--- a/finch/gntrequest.c
+++ b/finch/gntrequest.c
@@ -73,7 +73,7 @@ setup_default_callback(GntWidget *window, gpointer default_cb, gpointer data)
}
static void
-action_performed(GntWidget *button, gpointer data)
+action_performed(G_GNUC_UNUSED GntWidget *button, gpointer data)
{
g_signal_handlers_disconnect_matched(data, G_SIGNAL_MATCH_FUNC,
0, 0, NULL,
@@ -139,12 +139,13 @@ notify_input_cb(GntWidget *button, GntWidget *entry)
static void *
finch_request_input(const char *title, const char *primary,
- const char *secondary, const char *default_value,
- gboolean multiline, gboolean masked, gchar *hint,
- const char *ok_text, GCallback ok_cb,
- const char *cancel_text, GCallback cancel_cb,
- PurpleRequestCommonParameters *cpar,
- void *user_data)
+ const char *secondary, const char *default_value,
+ G_GNUC_UNUSED gboolean multiline, gboolean masked,
+ G_GNUC_UNUSED gchar *hint, const char *ok_text,
+ GCallback ok_cb, const char *cancel_text,
+ GCallback cancel_cb,
+ G_GNUC_UNUSED PurpleRequestCommonParameters *cpar,
+ void *user_data)
{
GntWidget *window, *box, *entry;
@@ -195,11 +196,11 @@ request_choice_cb(GntWidget *button, GntComboBox *combo)
static void *
finch_request_choice(const char *title, const char *primary,
- const char *secondary, gpointer default_value,
- const char *ok_text, GCallback ok_cb,
- const char *cancel_text, GCallback cancel_cb,
- PurpleRequestCommonParameters *cpar,
- void *user_data, va_list choices)
+ const char *secondary, gpointer default_value,
+ const char *ok_text, GCallback ok_cb,
+ const char *cancel_text, GCallback cancel_cb,
+ G_GNUC_UNUSED PurpleRequestCommonParameters *cpar,
+ void *user_data, va_list choices)
{
GntWidget *window, *combo, *box;
const char *text;
@@ -241,10 +242,9 @@ request_action_cb(GntWidget *button, GntWidget *window)
static void*
finch_request_action(const char *title, const char *primary,
- const char *secondary, int default_value,
- PurpleRequestCommonParameters *cpar,
- void *user_data, size_t actioncount,
- va_list actions)
+ const char *secondary, int default_value,
+ G_GNUC_UNUSED PurpleRequestCommonParameters *cpar,
+ void *user_data, size_t actioncount, va_list actions)
{
GntWidget *window, *box, *button, *focus = NULL;
gsize i;
@@ -391,8 +391,9 @@ request_fields_cb(GntWidget *button, PurpleRequestFields *fields)
}
static void
-update_selected_account(GntEntry *username, const char *start, const char *end,
- GntComboBox *accountlist)
+update_selected_account(GntEntry *username, G_GNUC_UNUSED const char *start,
+ G_GNUC_UNUSED const char *end,
+ GntComboBox *accountlist)
{
GList *accounts =
gnt_tree_get_rows(GNT_TREE(gnt_combo_box_get_dropdown(accountlist)));
@@ -727,7 +728,7 @@ finch_request_fields(const char *title, const char *primary,
}
static void
-file_cancel_cb(GntWidget *wid, gpointer fq)
+file_cancel_cb(G_GNUC_UNUSED GntWidget *wid, gpointer fq)
{
FinchFileRequest *data = fq;
if (data->dialog == NULL) {
@@ -743,7 +744,8 @@ file_cancel_cb(GntWidget *wid, gpointer fq)
}
static void
-file_ok_cb(GntWidget *widget, const char *path, const char *file, gpointer fq)
+file_ok_cb(G_GNUC_UNUSED GntWidget *widget, const char *path, const char *file,
+ gpointer fq)
{
FinchFileRequest *data = fq;
char *dir = g_path_get_dirname(path);
@@ -797,8 +799,9 @@ finch_file_request_window(const char *title, const char *path,
static void *
finch_request_file(const char *title, const char *filename, gboolean savedialog,
- GCallback ok_cb, GCallback cancel_cb,
- PurpleRequestCommonParameters *cpar, void *user_data)
+ GCallback ok_cb, GCallback cancel_cb,
+ G_GNUC_UNUSED PurpleRequestCommonParameters *cpar,
+ void *user_data)
{
FinchFileRequest *data;
const char *path;
@@ -816,8 +819,9 @@ finch_request_file(const char *title, const char *filename, gboolean savedialog,
static void *
finch_request_folder(const char *title, const char *dirname, GCallback ok_cb,
- GCallback cancel_cb, PurpleRequestCommonParameters *cpar,
- void *user_data)
+ GCallback cancel_cb,
+ G_GNUC_UNUSED PurpleRequestCommonParameters *cpar,
+ gpointer user_data)
{
FinchFileRequest *data;
@@ -856,7 +860,9 @@ finch_request_uninit(void)
{
}
-void finch_request_save_in_prefs(gpointer data, PurpleRequestFields *allfields)
+void
+finch_request_save_in_prefs(G_GNUC_UNUSED gpointer data,
+ PurpleRequestFields *allfields)
{
GList *list;
for (list = purple_request_fields_get_groups(allfields); list; list = list->next) {
diff --git a/finch/gntroomlist.c b/finch/gntroomlist.c
index ff6d2df267..54572caff8 100644
--- a/finch/gntroomlist.c
+++ b/finch/gntroomlist.c
@@ -54,7 +54,7 @@ struct _FinchRoomlist
typedef struct _FinchRoomlist FinchRoomlist;
static void
-unset_roomlist(gpointer null)
+unset_roomlist(G_GNUC_UNUSED gpointer data)
{
froomlist.window = NULL;
g_clear_object(&froomlist.roomlist);
@@ -62,15 +62,15 @@ unset_roomlist(gpointer null)
froomlist.tree = NULL;
}
-static void fl_stop(GntWidget *button, gpointer null)
-{
+static void
+fl_stop(G_GNUC_UNUSED GntWidget *button, G_GNUC_UNUSED gpointer data) {
if (froomlist.roomlist &&
purple_roomlist_get_in_progress(froomlist.roomlist))
purple_roomlist_cancel_get_list(froomlist.roomlist);
}
-static void fl_get_list(GntWidget *button, gpointer null)
-{
+static void
+fl_get_list(G_GNUC_UNUSED GntWidget *button, G_GNUC_UNUSED gpointer data) {
PurpleAccount *account = gnt_combo_box_get_selected_data(GNT_COMBO_BOX(froomlist.accounts));
PurpleConnection *gc = purple_account_get_connection(account);
@@ -82,8 +82,8 @@ static void fl_get_list(GntWidget *button, gpointer null)
gnt_box_give_focus_to_child(GNT_BOX(froomlist.window), froomlist.tree);
}
-static void fl_add_chat(GntWidget *button, gpointer null)
-{
+static void
+fl_add_chat(G_GNUC_UNUSED GntWidget *button, G_GNUC_UNUSED gpointer data) {
char *name;
PurpleRoomlistRoom *room = gnt_tree_get_selection_data(GNT_TREE(froomlist.tree));
PurpleConnection *gc = purple_account_get_connection(froomlist.account);
@@ -105,7 +105,8 @@ static void fl_add_chat(GntWidget *button, gpointer null)
g_free(name);
}
-static void fl_close(GntWidget *button, gpointer null)
+static void
+fl_close(G_GNUC_UNUSED GntWidget *button, G_GNUC_UNUSED gpointer data)
{
gnt_widget_destroy(froomlist.window);
}
@@ -121,7 +122,9 @@ roomlist_activated(GntWidget *widget)
}
static void
-roomlist_selection_changed(GntWidget *widget, gpointer old, gpointer current, gpointer null)
+roomlist_selection_changed(G_GNUC_UNUSED GntWidget *widget,
+ G_GNUC_UNUSED gpointer old, gpointer current,
+ G_GNUC_UNUSED gpointer data)
{
PurpleRoomlistRoom *room = current;
GntTextView *tv = GNT_TEXT_VIEW(froomlist.details);
@@ -137,7 +140,9 @@ roomlist_selection_changed(GntWidget *widget, gpointer old, gpointer current, gp
}
static void
-roomlist_account_changed(GntWidget *widget, gpointer old, gpointer current, gpointer null)
+roomlist_account_changed(G_GNUC_UNUSED GntWidget *widget,
+ G_GNUC_UNUSED gpointer old, gpointer current,
+ G_GNUC_UNUSED gpointer data)
{
if (froomlist.account == current) {
return;
@@ -155,7 +160,7 @@ roomlist_account_changed(GntWidget *widget, gpointer old, gpointer current, gpoi
}
static void
-reset_account_list(PurpleAccount *account)
+reset_account_list(G_GNUC_UNUSED PurpleAccount *account)
{
GList *list;
GntComboBox *accounts = GNT_COMBO_BOX(froomlist.accounts);
@@ -182,7 +187,8 @@ reset_account_list(PurpleAccount *account)
}
static void
-size_changed_cb(GntWidget *widget, int oldw, int oldh)
+size_changed_cb(GntWidget *widget, G_GNUC_UNUSED int oldw,
+ G_GNUC_UNUSED int oldh)
{
int w, h;
gnt_widget_get_size(widget, &w, &h);
@@ -293,7 +299,7 @@ fl_create(PurpleRoomlist *list)
}
static void
-fl_set_fields(PurpleRoomlist *list, GList *fields)
+fl_set_fields(G_GNUC_UNUSED PurpleRoomlist *list, G_GNUC_UNUSED GList *fields)
{
}
diff --git a/finch/gntstatus.c b/finch/gntstatus.c
index 9671b670a5..b3446277d3 100644
--- a/finch/gntstatus.c
+++ b/finch/gntstatus.c
@@ -65,7 +65,8 @@ typedef struct
static GList *edits; /* List of opened edit-status dialogs */
static void
-reset_status_window(GntWidget *widget, gpointer null)
+reset_status_window(G_GNUC_UNUSED GntWidget *widget,
+ G_GNUC_UNUSED gpointer data)
{
statuses.window = NULL;
statuses.tree = NULL;
@@ -115,7 +116,8 @@ really_delete_status(PurpleSavedStatus *saved)
}
static void
-ask_before_delete(GntWidget *button, gpointer null)
+ask_before_delete(G_GNUC_UNUSED GntWidget *button,
+ G_GNUC_UNUSED gpointer data)
{
char *ask;
PurpleSavedStatus *saved;
@@ -134,7 +136,8 @@ ask_before_delete(GntWidget *button, gpointer null)
}
static void
-use_savedstatus_cb(GntWidget *widget, gpointer null)
+use_savedstatus_cb(G_GNUC_UNUSED GntWidget *widget,
+ G_GNUC_UNUSED gpointer data)
{
g_return_if_fail(statuses.tree != NULL);
@@ -142,7 +145,8 @@ use_savedstatus_cb(GntWidget *widget, gpointer null)
}
static void
-edit_savedstatus_cb(GntWidget *widget, gpointer null)
+edit_savedstatus_cb(G_GNUC_UNUSED GntWidget *widget,
+ G_GNUC_UNUSED gpointer data)
{
g_return_if_fail(statuses.tree != NULL);
@@ -212,13 +216,14 @@ finch_savedstatus_show_all(void)
}
static void
-destroy_substatus_win(PurpleAccount *account, EditSubStatus *sub, gpointer null)
+destroy_substatus_win(G_GNUC_UNUSED PurpleAccount *account, EditSubStatus *sub,
+ G_GNUC_UNUSED gpointer data)
{
gnt_widget_destroy(sub->window); /* the "destroy" callback will remove entry from the hashtable */
}
static void
-free_key(gpointer key, gpointer n)
+free_key(gpointer key, G_GNUC_UNUSED gpointer n)
{
RowInfo *row = key;
g_free(row->message);
@@ -227,7 +232,7 @@ free_key(gpointer key, gpointer n)
static void
-update_edit_list(GntWidget *widget, EditStatus *edit)
+update_edit_list(G_GNUC_UNUSED GntWidget *widget, EditStatus *edit)
{
edits = g_list_remove(edits, edit);
purple_notify_close_with_handle(edit);
@@ -250,7 +255,7 @@ set_substatuses(EditStatus *edit)
static void
-use_trans_status_cb(GntWidget *button, EditStatus *edit)
+use_trans_status_cb(G_GNUC_UNUSED GntWidget *button, EditStatus *edit)
{
const char *message;
PurpleStatusPrimitive prim;
@@ -376,14 +381,14 @@ add_substatus(EditStatus *edit, PurpleAccount *account)
}
static void
-substatus_window_destroy_cb(GntWidget *window, EditSubStatus *sub)
+substatus_window_destroy_cb(G_GNUC_UNUSED GntWidget *window, EditSubStatus *sub)
{
g_hash_table_remove(sub->parent->hash, sub->key->account);
g_free(sub);
}
static void
-save_substatus_cb(GntWidget *widget, EditSubStatus *sub)
+save_substatus_cb(G_GNUC_UNUSED GntWidget *widget, EditSubStatus *sub)
{
PurpleSavedStatus *saved = sub->parent->saved;
RowInfo *row = sub->key;
diff --git a/finch/gntxfer.c b/finch/gntxfer.c
index b640f70ad2..bf0e980bba 100644
--- a/finch/gntxfer.c
+++ b/finch/gntxfer.c
@@ -116,7 +116,7 @@ update_title_progress(void)
* Callbacks
**************************************************************************/
static void
-toggle_keep_open_cb(GntWidget *w)
+toggle_keep_open_cb(G_GNUC_UNUSED GntWidget *w)
{
xfer_dialog->keep_open = !xfer_dialog->keep_open;
purple_prefs_set_bool("/finch/filetransfer/keep_open",
@@ -124,7 +124,7 @@ toggle_keep_open_cb(GntWidget *w)
}
static void
-toggle_clear_finished_cb(GntWidget *w)
+toggle_clear_finished_cb(G_GNUC_UNUSED GntWidget *w)
{
xfer_dialog->auto_clear = !xfer_dialog->auto_clear;
purple_prefs_set_bool("/finch/filetransfer/clear_finished",
@@ -141,7 +141,7 @@ toggle_clear_finished_cb(GntWidget *w)
}
static void
-remove_button_cb(GntButton *button)
+remove_button_cb(G_GNUC_UNUSED GntButton *button)
{
PurpleXfer *selected_xfer = gnt_tree_get_selection_data(GNT_TREE(xfer_dialog->tree));
if (selected_xfer && (purple_xfer_is_completed(selected_xfer) ||
@@ -151,7 +151,7 @@ remove_button_cb(GntButton *button)
}
static void
-stop_button_cb(GntButton *button)
+stop_button_cb(G_GNUC_UNUSED GntButton *button)
{
PurpleXfer *selected_xfer = gnt_tree_get_selection_data(GNT_TREE(xfer_dialog->tree));
PurpleXferStatus status;
diff --git a/finch/libfinch.c b/finch/libfinch.c
index 7cb9136760..09b67685ec 100644
--- a/finch/libfinch.c
+++ b/finch/libfinch.c
@@ -40,7 +40,7 @@
#include "package_revision.h"
static gboolean
-start_with_debugwin(gpointer null)
+start_with_debugwin(G_GNUC_UNUSED gpointer data)
{
finch_debug_window_show();
return FALSE;
@@ -69,7 +69,7 @@ finch_plugins_init(void) {
}
static int
-init_libpurple(int argc, char **argv)
+init_libpurple(G_GNUC_UNUSED int argc, char **argv)
{
gboolean opt_nologin = FALSE;
gboolean opt_version = FALSE;
diff --git a/finch/plugins/gntclipboard/gntclipboard.c b/finch/plugins/gntclipboard/gntclipboard.c
index cbb4cdd4ce..7ad8b3db00 100644
--- a/finch/plugins/gntclipboard/gntclipboard.c
+++ b/finch/plugins/gntclipboard/gntclipboard.c
@@ -102,7 +102,7 @@ clipboard_changed(GntWM *wm, gchar *string)
#endif
static GPluginPluginInfo *
-gnt_clipboard_query(GError **error) {
+gnt_clipboard_query(G_GNUC_UNUSED GError **error) {
const gchar * const authors[] = {
"Richard Nelson <wabz@whatsbeef.net>",
NULL
@@ -124,7 +124,7 @@ gnt_clipboard_query(GError **error) {
}
static gboolean
-gnt_clipboard_load(GPluginPlugin *plugin, GError **error) {
+gnt_clipboard_load(G_GNUC_UNUSED GPluginPlugin *plugin, GError **error) {
#ifdef HAVE_X11
if (!XOpenDisplay(NULL)) {
purple_debug_warning("gntclipboard", "Couldn't find X display\n");
@@ -148,7 +148,10 @@ gnt_clipboard_load(GPluginPlugin *plugin, GError **error) {
}
static gboolean
-gnt_clipboard_unload(GPluginPlugin *plugin, gboolean shutdown, GError **error) {
+gnt_clipboard_unload(G_GNUC_UNUSED GPluginPlugin *plugin,
+ G_GNUC_UNUSED gboolean shutdown,
+ G_GNUC_UNUSED GError **error)
+{
#ifdef HAVE_X11
if (child) {
kill(child, SIGTERM);
diff --git a/finch/plugins/gntgf/gntgf.c b/finch/plugins/gntgf/gntgf.c
index 9651b36634..a4d0b3e87c 100644
--- a/finch/plugins/gntgf/gntgf.c
+++ b/finch/plugins/gntgf/gntgf.c
@@ -220,7 +220,7 @@ notify(PurpleConversation *conv, const char *fmt, ...)
}
static void
-buddy_signed_on(PurpleBuddy *buddy, gpointer null)
+buddy_signed_on(PurpleBuddy *buddy, G_GNUC_UNUSED gpointer data)
{
GSettings *settings = NULL;
@@ -235,7 +235,7 @@ buddy_signed_on(PurpleBuddy *buddy, gpointer null)
}
static void
-buddy_signed_off(PurpleBuddy *buddy, gpointer null)
+buddy_signed_off(PurpleBuddy *buddy, G_GNUC_UNUSED gpointer data)
{
GSettings *settings = NULL;
@@ -250,8 +250,10 @@ buddy_signed_off(PurpleBuddy *buddy, gpointer null)
}
static void
-received_im_msg(PurpleAccount *account, const char *sender, const char *msg,
- PurpleIMConversation *im, PurpleMessageFlags flags, gpointer null)
+received_im_msg(G_GNUC_UNUSED PurpleAccount *account, const char *sender,
+ G_GNUC_UNUSED const char *msg, PurpleIMConversation *im,
+ G_GNUC_UNUSED PurpleMessageFlags flags,
+ G_GNUC_UNUSED gpointer data)
{
GSettings *settings = NULL;
@@ -266,8 +268,10 @@ received_im_msg(PurpleAccount *account, const char *sender, const char *msg,
}
static void
-received_chat_msg(PurpleAccount *account, const char *sender, const char *msg,
- PurpleChatConversation *chat, PurpleMessageFlags flags, gpointer null)
+received_chat_msg(G_GNUC_UNUSED PurpleAccount *account, const char *sender,
+ const char *msg, PurpleChatConversation *chat,
+ G_GNUC_UNUSED PurpleMessageFlags flags,
+ G_GNUC_UNUSED gpointer data)
{
const char *nick;
PurpleConversation *conv = PURPLE_CONVERSATION(chat);
@@ -309,8 +313,7 @@ static struct
};
static void
-pref_toggled(GntTree *tree, char *key, gpointer null)
-{
+pref_toggled(GntTree *tree, char *key, G_GNUC_UNUSED gpointer data) {
purple_prefs_set_bool(key, gnt_tree_get_choice(tree, key));
}
@@ -364,8 +367,7 @@ config_frame(void)
}
static GPluginPluginInfo *
-gnt_gf_query(GError **error)
-{
+gnt_gf_query(G_GNUC_UNUSED GError **error) {
const gchar * const authors[] = {
"Sadrul H Chowdhury <sadrul@users.sourceforge.net>",
NULL
@@ -387,7 +389,7 @@ gnt_gf_query(GError **error)
}
static gboolean
-gnt_gf_load(GPluginPlugin *plugin, GError **error) {
+gnt_gf_load(GPluginPlugin *plugin, G_GNUC_UNUSED GError **error) {
purple_signal_connect(purple_blist_get_handle(), "buddy-signed-on", plugin,
G_CALLBACK(buddy_signed_on), NULL);
purple_signal_connect(purple_blist_get_handle(), "buddy-signed-off", plugin,
@@ -404,7 +406,10 @@ gnt_gf_load(GPluginPlugin *plugin, GError **error) {
}
static gboolean
-gnt_gf_unload(GPluginPlugin *plugin, gboolean shutdown, GError **error) {
+gnt_gf_unload(G_GNUC_UNUSED GPluginPlugin *plugin,
+ G_GNUC_UNUSED gboolean shutdown,
+ G_GNUC_UNUSED GError **error)
+{
while (toasters)
{
GntToast *toast = toasters->data;
diff --git a/finch/plugins/gnttinyurl/gnttinyurl.c b/finch/plugins/gnttinyurl/gnttinyurl.c
index 6b9d5dcdae..ea7bbeb91a 100644
--- a/finch/plugins/gnttinyurl/gnttinyurl.c
+++ b/finch/plugins/gnttinyurl/gnttinyurl.c
@@ -241,7 +241,9 @@ url_fetched(GObject *source, GAsyncResult *result, gpointer user_data) {
purple_debug_info("TinyURL", "Conversation no longer exists... :(\n");
}
-static gboolean writing_msg(PurpleConversation *conv, PurpleMessage *msg, gpointer _unused)
+static gboolean
+writing_msg(PurpleConversation *conv, PurpleMessage *msg,
+ G_GNUC_UNUSED gpointer data)
{
GString *t;
GList *iter, *urls, *next;
@@ -294,8 +296,9 @@ static gboolean writing_msg(PurpleConversation *conv, PurpleMessage *msg, gpoint
return FALSE;
}
-static void wrote_msg(PurpleConversation *conv, PurpleMessage *pmsg,
- gpointer _unused)
+static void
+wrote_msg(PurpleConversation *conv, PurpleMessage *pmsg,
+ G_GNUC_UNUSED gpointer _unused)
{
GList *urls;
@@ -485,8 +488,7 @@ tinyurl_notify_uri(const char *uri)
}
static PurplePluginPrefFrame *
-get_plugin_pref_frame(PurplePlugin *plugin) {
-
+get_plugin_pref_frame(G_GNUC_UNUSED PurplePlugin *plugin) {
PurplePluginPrefFrame *frame;
PurplePluginPref *pref;
@@ -504,7 +506,7 @@ get_plugin_pref_frame(PurplePlugin *plugin) {
}
static GPluginPluginInfo *
-tiny_url_query(GError **error) {
+tiny_url_query(G_GNUC_UNUSED GError **error) {
const gchar * const authors[] = {
"Richard Nelson <wabz@whatsbeef.net>",
NULL
@@ -527,7 +529,7 @@ tiny_url_query(GError **error) {
}
static gboolean
-tiny_url_load(GPluginPlugin *plugin, GError **error) {
+tiny_url_load(GPluginPlugin *plugin, G_GNUC_UNUSED GError **error) {
PurpleNotifyUiOps *ops = purple_notify_get_ui_ops();
session = soup_session_new();
@@ -558,7 +560,9 @@ tiny_url_load(GPluginPlugin *plugin, GError **error) {
}
static gboolean
-tiny_url_unload(GPluginPlugin *plugin, gboolean shutdown, GError **error) {
+tiny_url_unload(GPluginPlugin *plugin, G_GNUC_UNUSED gboolean shutdown,
+ G_GNUC_UNUSED GError **error)
+{
PurpleNotifyUiOps *ops = purple_notify_get_ui_ops();
if (ops->notify_uri == tinyurl_notify_uri)
ops->notify_uri = g_object_get_data(G_OBJECT(plugin), "notify-uri");
diff --git a/finch/plugins/grouping/grouping.c b/finch/plugins/grouping/grouping.c
index 219710490b..a09a4ed9a3 100644
--- a/finch/plugins/grouping/grouping.c
+++ b/finch/plugins/grouping/grouping.c
@@ -346,7 +346,7 @@ static FinchBlistManager nested_group =
};
static GPluginPluginInfo *
-grouping_query(GError **error) {
+grouping_query(G_GNUC_UNUSED GError **error) {
const gchar * const authors[] = {
"Sadrul H Chowdhury <sadrul@users.sourceforge.net>",
NULL
@@ -367,7 +367,7 @@ grouping_query(GError **error) {
}
static gboolean
-grouping_load(GPluginPlugin *plugin, GError **error) {
+grouping_load(GPluginPlugin *plugin, G_GNUC_UNUSED GError **error) {
finch_grouping_node_register_type(G_TYPE_MODULE(plugin));
default_manager = finch_blist_manager_find("default");
@@ -383,7 +383,10 @@ grouping_load(GPluginPlugin *plugin, GError **error) {
}
static gboolean
-grouping_unload(GPluginPlugin *plugin, gboolean shutdown, GError **error) {
+grouping_unload(G_GNUC_UNUSED GPluginPlugin *plugin,
+ G_GNUC_UNUSED gboolean shutdown,
+ G_GNUC_UNUSED GError **error)
+{
finch_blist_uninstall_manager(&on_offline);
finch_blist_uninstall_manager(&meebo_group);
finch_blist_uninstall_manager(&no_group);
diff --git a/finch/plugins/lastlog/lastlog.c b/finch/plugins/lastlog/lastlog.c
index fbf332ed00..c7b43cf875 100644
--- a/finch/plugins/lastlog/lastlog.c
+++ b/finch/plugins/lastlog/lastlog.c
@@ -52,7 +52,9 @@ window_kpress_cb(GntWidget *wid, const char *key, GntTextView *view)
}
static PurpleCmdRet
-lastlog_cb(PurpleConversation *conv, const char *cmd, char **args, char **error, gpointer null)
+lastlog_cb(PurpleConversation *conv, G_GNUC_UNUSED const char *cmd,
+ char **args, G_GNUC_UNUSED char **error,
+ G_GNUC_UNUSED gpointer data)
{
FinchConv *ggconv = FINCH_CONV(conv);
char **strings = g_strsplit(gnt_text_view_get_text(GNT_TEXT_VIEW(ggconv->tv)),
@@ -87,7 +89,7 @@ lastlog_cb(PurpleConversation *conv, const char *cmd, char **args, char **error,
}
static GPluginPluginInfo *
-gnt_last_log_query(GError **error) {
+gnt_last_log_query(G_GNUC_UNUSED GError **error) {
const gchar * const authors[] = {
"Sadrul H Chowdhury <sadrul@users.sourceforge.net>",
NULL
@@ -108,7 +110,9 @@ gnt_last_log_query(GError **error) {
}
static gboolean
-gnt_last_log_load(GPluginPlugin *plugin, GError **error) {
+gnt_last_log_load(G_GNUC_UNUSED GPluginPlugin *plugin,
+ G_GNUC_UNUSED GError **error)
+{
cmd = purple_cmd_register("lastlog", "s", PURPLE_CMD_P_DEFAULT,
PURPLE_CMD_FLAG_CHAT | PURPLE_CMD_FLAG_IM, NULL,
/* Translators: The "backlog" here refers to the the conversation buffer/history. */
@@ -117,7 +121,10 @@ gnt_last_log_load(GPluginPlugin *plugin, GError **error) {
}
static gboolean
-gnt_last_log_unload(GPluginPlugin *plugin, gboolean shutdown, GError **error) {
+gnt_last_log_unload(G_GNUC_UNUSED GPluginPlugin *plugin,
+ G_GNUC_UNUSED gboolean shutdown,
+ G_GNUC_UNUSED GError **error)
+{
purple_cmd_unregister(cmd);
return TRUE;
}