diff options
author | Gary Kramlich <grim@reaperworld.com> | 2023-02-23 22:42:20 -0600 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2023-02-23 22:42:20 -0600 |
commit | 29ab389e5bd5ca1c8997c18cb2ad21fbbabc9c58 (patch) | |
tree | ff41a45716071cec0f464a9af7df440d5b7f1eda /libpurple | |
parent | a7f487329ca45163e21aaa615d50a67d53de99ad (diff) | |
download | pidgin-29ab389e5bd5ca1c8997c18cb2ad21fbbabc9c58.tar.gz |
Make the gadu gadu protocol plugin clean for warning level 2
Testing Done:
Touched all of the files, built, and verifed the warnings were gone.
Reviewed at https://reviews.imfreedom.org/r/2262/
Diffstat (limited to 'libpurple')
-rw-r--r-- | libpurple/protocols/gg/avatar.c | 4 | ||||
-rw-r--r-- | libpurple/protocols/gg/chat.c | 29 | ||||
-rw-r--r-- | libpurple/protocols/gg/edisc.c | 15 | ||||
-rw-r--r-- | libpurple/protocols/gg/gg.c | 64 | ||||
-rw-r--r-- | libpurple/protocols/gg/libgaduw.c | 10 | ||||
-rw-r--r-- | libpurple/protocols/gg/message-prpl.c | 5 | ||||
-rw-r--r-- | libpurple/protocols/gg/oauth/oauth-purple.c | 3 | ||||
-rw-r--r-- | libpurple/protocols/gg/pubdir-prpl.c | 37 | ||||
-rw-r--r-- | libpurple/protocols/gg/purplew.c | 5 | ||||
-rw-r--r-- | libpurple/protocols/gg/roster.c | 17 | ||||
-rw-r--r-- | libpurple/protocols/gg/status.c | 8 | ||||
-rw-r--r-- | libpurple/protocols/gg/tcpsocket.c | 9 | ||||
-rw-r--r-- | libpurple/protocols/gg/validator.c | 5 |
13 files changed, 126 insertions, 85 deletions
diff --git a/libpurple/protocols/gg/avatar.c b/libpurple/protocols/gg/avatar.c index 249a406655..9197173203 100644 --- a/libpurple/protocols/gg/avatar.c +++ b/libpurple/protocols/gg/avatar.c @@ -321,8 +321,8 @@ ggp_avatar_own_got_token(PurpleConnection *gc, const gchar *token, } void -ggp_avatar_own_set(PurpleProtocolServer *protocol_server, PurpleConnection *gc, - PurpleImage *img) +ggp_avatar_own_set(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, + PurpleConnection *gc, PurpleImage *img) { ggp_avatar_session_data *avdata; diff --git a/libpurple/protocols/gg/chat.c b/libpurple/protocols/gg/chat.c index 66c57de775..9768a9c969 100644 --- a/libpurple/protocols/gg/chat.c +++ b/libpurple/protocols/gg/chat.c @@ -300,7 +300,9 @@ static void ggp_chat_left(ggp_chat_local_info *chat, uin_t uin) } GList * -ggp_chat_info(PurpleProtocolChat *protocol_chat, PurpleConnection *gc) { +ggp_chat_info(G_GNUC_UNUSED PurpleProtocolChat *protocol_chat, + G_GNUC_UNUSED PurpleConnection *gc) +{ GList *m = NULL; PurpleProtocolChatEntry *pce; @@ -314,7 +316,8 @@ ggp_chat_info(PurpleProtocolChat *protocol_chat, PurpleConnection *gc) { } GHashTable * -ggp_chat_info_defaults(PurpleProtocolChat *protocol_chat, PurpleConnection *gc, +ggp_chat_info_defaults(G_GNUC_UNUSED PurpleProtocolChat *protocol_chat, + G_GNUC_UNUSED PurpleConnection *gc, const gchar *chat_name) { GHashTable *defaults; @@ -328,7 +331,9 @@ ggp_chat_info_defaults(PurpleProtocolChat *protocol_chat, PurpleConnection *gc, } gchar * -ggp_chat_get_name(PurpleProtocolChat *protocol_chat, GHashTable *components) { +ggp_chat_get_name(G_GNUC_UNUSED PurpleProtocolChat *protocol_chat, + GHashTable *components) +{ return g_strdup((gchar*)g_hash_table_lookup(components, "id")); } @@ -356,8 +361,8 @@ static uint64_t ggp_chat_get_id_from_name(const gchar * name) } void -ggp_chat_join(PurpleProtocolChat *protocol_chat, PurpleConnection *gc, - GHashTable *components) +ggp_chat_join(G_GNUC_UNUSED PurpleProtocolChat *protocol_chat, + PurpleConnection *gc, GHashTable *components) { ggp_chat_session_data *sdata = ggp_chat_get_sdata(gc); GGPInfo *info = purple_connection_get_protocol_data(gc); @@ -435,8 +440,8 @@ static void ggp_chat_join_id(PurpleConnection *gc, uint64_t id) } void -ggp_chat_leave(PurpleProtocolChat *protocol_chat, PurpleConnection *gc, - gint local_id) +ggp_chat_leave(G_GNUC_UNUSED PurpleProtocolChat *protocol_chat, + PurpleConnection *gc, gint local_id) { PurpleAccount *account = NULL; PurpleContactInfo *contact_info = NULL; @@ -467,8 +472,9 @@ ggp_chat_leave(PurpleProtocolChat *protocol_chat, PurpleConnection *gc, } void -ggp_chat_invite(PurpleProtocolChat *protocol_chat, PurpleConnection *gc, - gint local_id, const gchar *message, const gchar *who) +ggp_chat_invite(G_GNUC_UNUSED PurpleProtocolChat *protocol_chat, + PurpleConnection *gc, gint local_id, + G_GNUC_UNUSED const gchar *message, const gchar *who) { GGPInfo *info = purple_connection_get_protocol_data(gc); ggp_chat_local_info *chat; @@ -490,7 +496,8 @@ ggp_chat_invite(PurpleProtocolChat *protocol_chat, PurpleConnection *gc, } gint -ggp_chat_send(PurpleProtocolChat *protocol_chat, PurpleConnection *gc, +ggp_chat_send(G_GNUC_UNUSED PurpleProtocolChat *protocol_chat, + PurpleConnection *gc, gint local_id, PurpleMessage *msg) { PurpleAccount *account = NULL; @@ -586,7 +593,7 @@ static gboolean ggp_chat_roomlist_get_list_finish(gpointer roomlist) } PurpleRoomlist * -ggp_chat_roomlist_get_list(PurpleProtocolRoomlist *protocol_roomlist, +ggp_chat_roomlist_get_list(G_GNUC_UNUSED PurpleProtocolRoomlist *protocol_roomlist, PurpleConnection *gc) { ggp_chat_session_data *sdata = ggp_chat_get_sdata(gc); diff --git a/libpurple/protocols/gg/edisc.c b/libpurple/protocols/gg/edisc.c index 182dbd1048..c9f7fa61d1 100644 --- a/libpurple/protocols/gg/edisc.c +++ b/libpurple/protocols/gg/edisc.c @@ -416,8 +416,8 @@ ggp_ggdrive_auth(PurpleConnection *gc, ggp_ggdrive_auth_cb cb, } static void -ggp_edisc_xfer_send_ticket_changed(PurpleConnection *gc, PurpleXfer *xfer, - gboolean is_allowed) +ggp_edisc_xfer_send_ticket_changed(G_GNUC_UNUSED PurpleConnection *gc, + PurpleXfer *xfer, gboolean is_allowed) { GGPXfer *edisc_xfer = GGP_XFER(xfer); if (!edisc_xfer) { @@ -453,7 +453,7 @@ ggp_edisc_xfer_send_ticket_changed(PurpleConnection *gc, PurpleXfer *xfer, ******************************************************************************/ gboolean -ggp_edisc_xfer_can_receive_file(PurpleProtocolXfer *prplxfer, +ggp_edisc_xfer_can_receive_file(G_GNUC_UNUSED PurpleProtocolXfer *prplxfer, PurpleConnection *gc, const char *who) { PurpleBuddy *buddy; @@ -805,7 +805,9 @@ static void ggp_edisc_xfer_send_start(PurpleXfer *xfer) #endif } -PurpleXfer * ggp_edisc_xfer_send_new(PurpleProtocolXfer *prplxfer, PurpleConnection *gc, const char *who) +PurpleXfer * +ggp_edisc_xfer_send_new(G_GNUC_UNUSED PurpleProtocolXfer *prplxfer, + PurpleConnection *gc, const char *who) { GGPXfer *xfer; @@ -1063,7 +1065,7 @@ ggp_edisc_xfer_recv_done_cb(GObject *source, GAsyncResult *result, poll = g_pollable_input_stream_create_source(G_POLLABLE_INPUT_STREAM(input), edisc_xfer->cancellable); g_source_set_callback(poll, - (GSourceFunc)ggp_edisc_xfer_recv_pollable_source_cb, + (GSourceFunc)(gpointer)ggp_edisc_xfer_recv_pollable_source_cb, xfer, NULL); edisc_xfer->handler = g_source_attach(poll, NULL); g_source_unref(poll); @@ -1479,8 +1481,7 @@ ggp_xfer_finalize(GObject *obj) { } static void -ggp_xfer_class_finalize(GGPXferClass *klass) { - +ggp_xfer_class_finalize(G_GNUC_UNUSED GGPXferClass *klass) { } static void diff --git a/libpurple/protocols/gg/gg.c b/libpurple/protocols/gg/gg.c index 18878821dc..16680a71e6 100644 --- a/libpurple/protocols/gg/gg.c +++ b/libpurple/protocols/gg/gg.c @@ -71,7 +71,7 @@ ggp_buddy_data * ggp_buddy_get_data(PurpleBuddy *buddy) } static void -ggp_buddy_free(PurpleProtocolClient *client, PurpleBuddy *buddy) +ggp_buddy_free(G_GNUC_UNUSED PurpleProtocolClient *client, PurpleBuddy *buddy) { ggp_buddy_data *buddy_data = purple_buddy_get_protocol_data(buddy); @@ -282,7 +282,8 @@ static void ggp_typing_notification_handler(PurpleConnection *gc, uin_t uin, int * @see http://toxygen.net/libgadu/protocol/#ch1.13 * @todo: this may not be necessary anymore */ -static void ggp_xml_event_handler(PurpleConnection *gc, char *data) +static void +ggp_xml_event_handler(G_GNUC_UNUSED PurpleConnection *gc, char *data) { PurpleXmlNode *xml = NULL; PurpleXmlNode *xmlnode_next_event; @@ -343,7 +344,9 @@ static void ggp_xml_event_handler(PurpleConnection *gc, char *data) purple_xmlnode_free(xml); } -static void ggp_callback_recv(gpointer _gc, gint fd, PurpleInputCondition cond) +static void +ggp_callback_recv(gpointer _gc, G_GNUC_UNUSED gint fd, + G_GNUC_UNUSED PurpleInputCondition cond) { PurpleConnection *gc = _gc; GGPInfo *info = purple_connection_get_protocol_data(gc); @@ -447,7 +450,9 @@ static void ggp_callback_recv(gpointer _gc, gint fd, PurpleInputCondition cond) gg_free_event(ev); } -void ggp_async_login_handler(gpointer _gc, gint fd, PurpleInputCondition cond) +void +ggp_async_login_handler(gpointer _gc, G_GNUC_UNUSED gint fd, + G_GNUC_UNUSED PurpleInputCondition cond) { PurpleConnection *gc = _gc; GGPInfo *info; @@ -642,7 +647,7 @@ gg_uri_handler_find_account(PurpleAccount *account, static gboolean gg_uri_handler(const gchar *scheme, const gchar *screenname, - GHashTable *params) + G_GNUC_UNUSED GHashTable *params) { PurpleAccountManager *manager = NULL; PurpleAccount *account; @@ -680,7 +685,7 @@ gg_uri_handler(const gchar *scheme, const gchar *screenname, /* ---------------------------------------------------------------------- */ static PurpleBuddyIconSpec * -ggp_protocol_get_buddy_icon_spec(PurpleProtocol *protocol) { +ggp_protocol_get_buddy_icon_spec(G_GNUC_UNUSED PurpleProtocol *protocol) { return purple_buddy_icon_spec_new("png", 1, 1, 200, 200, 0, PURPLE_ICON_SCALE_DISPLAY | @@ -688,7 +693,7 @@ ggp_protocol_get_buddy_icon_spec(PurpleProtocol *protocol) { } static GList * -ggp_protocol_get_account_options(PurpleProtocol *protocol) { +ggp_protocol_get_account_options(G_GNUC_UNUSED PurpleProtocol *protocol) { PurpleAccountOption *option = NULL; PurpleKeyValuePair *kvp = NULL; GList *encryption_options = NULL; @@ -736,8 +741,8 @@ ggp_protocol_get_account_options(PurpleProtocol *protocol) { } static const char * -ggp_normalize(PurpleProtocolClient *client, PurpleAccount *account, - const char *who) +ggp_normalize(G_GNUC_UNUSED PurpleProtocolClient *client, + G_GNUC_UNUSED PurpleAccount *account, const char *who) { static char normalized[21]; /* maximum unsigned long long int size */ @@ -756,8 +761,9 @@ ggp_normalize(PurpleProtocolClient *client, PurpleAccount *account, * - add information about not adding to his buddy list (not_a_friend) */ static void -ggp_tooltip_text(PurpleProtocolClient *client, PurpleBuddy *b, - PurpleNotifyUserInfo *user_info, gboolean full) +ggp_tooltip_text(G_GNUC_UNUSED PurpleProtocolClient *client, PurpleBuddy *b, + PurpleNotifyUserInfo *user_info, + G_GNUC_UNUSED gboolean full) { PurpleStatus *status; char *tmp; @@ -957,7 +963,9 @@ ggp_close(G_GNUC_UNUSED PurpleProtocol *protocol, PurpleConnection *gc) { purple_debug_info("gg", "Connection closed.\n"); } -static unsigned int ggp_send_typing(PurpleProtocolIM *im, PurpleConnection *gc, const char *name, PurpleIMTypingState state) +static unsigned int +ggp_send_typing(G_GNUC_UNUSED PurpleProtocolIM *im, PurpleConnection *gc, + const char *name, PurpleIMTypingState state) { GGPInfo *info = purple_connection_get_protocol_data(gc); int dummy_length; /* we don't send real length of typed message */ @@ -1009,7 +1017,9 @@ ggp_remove_buddy(PurpleProtocolServer *protocol_server, PurpleConnection *gc, } static void -ggp_keepalive(PurpleProtocolServer *protocol_server, PurpleConnection *gc) { +ggp_keepalive(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, + PurpleConnection *gc) +{ GGPInfo *info = purple_connection_get_protocol_data(gc); /* purple_debug_info("gg", "Keeping connection alive....\n"); */ @@ -1116,12 +1126,12 @@ ggp_action_set_info(G_GNUC_UNUSED GSimpleAction *action, } static const gchar * -ggp_protocol_actions_get_prefix(PurpleProtocolActions *actions) { +ggp_protocol_actions_get_prefix(G_GNUC_UNUSED PurpleProtocolActions *actions) { return "prpl-gg"; } static GActionGroup * -ggp_protocol_actions_get_action_group(PurpleProtocolActions *actions, +ggp_protocol_actions_get_action_group(G_GNUC_UNUSED PurpleProtocolActions *actions, G_GNUC_UNUSED PurpleConnection *connection) { GSimpleActionGroup *group = NULL; @@ -1221,7 +1231,9 @@ ggp_protocol_actions_get_menu(G_GNUC_UNUSED PurpleProtocolActions *actions, } static const char * -ggp_list_emblem(PurpleProtocolClient *client, PurpleBuddy *buddy) { +ggp_list_emblem(G_GNUC_UNUSED PurpleProtocolClient *client, + PurpleBuddy *buddy) +{ ggp_buddy_data *buddy_data = ggp_buddy_get_data(buddy); if (buddy_data->blocked) @@ -1233,13 +1245,15 @@ ggp_list_emblem(PurpleProtocolClient *client, PurpleBuddy *buddy) { } static gboolean -ggp_offline_message(PurpleProtocolClient *client, PurpleBuddy *buddy) { +ggp_offline_message(G_GNUC_UNUSED PurpleProtocolClient *client, + G_GNUC_UNUSED PurpleBuddy *buddy) +{ return TRUE; } static GHashTable * -ggp_get_account_text_table(PurpleProtocolClient *client, - PurpleAccount *account) +ggp_get_account_text_table(G_GNUC_UNUSED PurpleProtocolClient *client, + G_GNUC_UNUSED PurpleAccount *account) { GHashTable *table; table = g_hash_table_new(g_str_hash, g_str_equal); @@ -1248,16 +1262,15 @@ ggp_get_account_text_table(PurpleProtocolClient *client, } static gssize -ggp_get_max_message_size(PurpleProtocolClient *client, - PurpleConversation *conv) +ggp_get_max_message_size(G_GNUC_UNUSED PurpleProtocolClient *client, + G_GNUC_UNUSED PurpleConversation *conv) { /* TODO: it may depend on protocol version or other factors */ return 1200; /* no more than 1232 */ } static void -ggp_protocol_init(GGPProtocol *self) -{ +ggp_protocol_init(G_GNUC_UNUSED GGPProtocol *self) { } static void @@ -1381,7 +1394,7 @@ ggp_protocol_new(void) { } static GPluginPluginInfo * -gg_query(GError **error) +gg_query(G_GNUC_UNUSED GError **error) { GPluginPluginInfo *info = NULL; gchar *description = NULL; @@ -1447,7 +1460,8 @@ gg_load(GPluginPlugin *plugin, GError **error) } static gboolean -gg_unload(GPluginPlugin *plugin, gboolean shutdown, GError **error) +gg_unload(GPluginPlugin *plugin, G_GNUC_UNUSED gboolean shutdown, + GError **error) { PurpleProtocolManager *manager = purple_protocol_manager_get_default(); diff --git a/libpurple/protocols/gg/libgaduw.c b/libpurple/protocols/gg/libgaduw.c index 403d617f00..2669810b23 100644 --- a/libpurple/protocols/gg/libgaduw.c +++ b/libpurple/protocols/gg/libgaduw.c @@ -146,16 +146,18 @@ ggp_libgaduw_http_req * ggp_libgaduw_http_watch(PurpleConnection *gc, return req; } -static void ggp_libgaduw_http_processing_cancel(PurpleConnection *gc, - void *_req) +static void +ggp_libgaduw_http_processing_cancel(G_GNUC_UNUSED PurpleConnection *gc, + void *_req) { ggp_libgaduw_http_req *req = _req; req->processing = NULL; ggp_libgaduw_http_cancel(req); } -static void ggp_libgaduw_http_handler(gpointer _req, gint fd, - PurpleInputCondition cond) +static void +ggp_libgaduw_http_handler(gpointer _req, G_GNUC_UNUSED gint fd, + G_GNUC_UNUSED PurpleInputCondition cond) { ggp_libgaduw_http_req *req = _req; diff --git a/libpurple/protocols/gg/message-prpl.c b/libpurple/protocols/gg/message-prpl.c index 194f1f3caa..f42084be71 100644 --- a/libpurple/protocols/gg/message-prpl.c +++ b/libpurple/protocols/gg/message-prpl.c @@ -652,8 +652,9 @@ ggp_message_format_to_gg(PurpleConversation *conv, const gchar *text) return text_new; } -int ggp_message_send_im(PurpleProtocolIM *pim, PurpleConnection *gc, - PurpleMessage *msg) +int +ggp_message_send_im(G_GNUC_UNUSED PurpleProtocolIM *pim, + PurpleConnection *gc, PurpleMessage *msg) { GGPInfo *info = purple_connection_get_protocol_data(gc); PurpleConversation *im; diff --git a/libpurple/protocols/gg/oauth/oauth-purple.c b/libpurple/protocols/gg/oauth/oauth-purple.c index 33d124202e..903050581c 100644 --- a/libpurple/protocols/gg/oauth/oauth-purple.c +++ b/libpurple/protocols/gg/oauth/oauth-purple.c @@ -133,7 +133,8 @@ ggp_oauth_access_token_got(GObject *source, GAsyncResult *result, } static void -ggp_oauth_authorization_done(GObject *source, GAsyncResult *result, +ggp_oauth_authorization_done(GObject *source, + G_GNUC_UNUSED GAsyncResult *result, gpointer user_data) { ggp_oauth_data *data = user_data; diff --git a/libpurple/protocols/gg/pubdir-prpl.c b/libpurple/protocols/gg/pubdir-prpl.c index 675da25c72..ad0c79bf97 100644 --- a/libpurple/protocols/gg/pubdir-prpl.c +++ b/libpurple/protocols/gg/pubdir-prpl.c @@ -332,9 +332,10 @@ ggp_pubdir_get_info(PurpleConnection *gc, uin_t uin, ggp_pubdir_request_cb cb, g_free(url); } -static void ggp_pubdir_get_info_protocol_got(PurpleConnection *gc, - int records_count, const ggp_pubdir_record *records, int next_offset, - void *_uin_p) +static void +ggp_pubdir_get_info_protocol_got(PurpleConnection *gc, int records_count, + const ggp_pubdir_record *records, + G_GNUC_UNUSED int next_offset, void *_uin_p) { uin_t uin = *((uin_t*)_uin_p); PurpleNotifyUserInfo *info = purple_notify_user_info_new(); @@ -420,7 +421,7 @@ static void ggp_pubdir_get_info_protocol_got(PurpleConnection *gc, } void -ggp_pubdir_get_info_protocol(PurpleProtocolServer *protocol_server, +ggp_pubdir_get_info_protocol(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, PurpleConnection *gc, const gchar *name) { uin_t uin = ggp_str_to_uin(name); @@ -433,9 +434,11 @@ ggp_pubdir_get_info_protocol(PurpleProtocolServer *protocol_server, ggp_pubdir_get_info(gc, uin, ggp_pubdir_get_info_protocol_got, uin_p); } -static void ggp_pubdir_request_buddy_alias_got(PurpleConnection *gc, - int records_count, const ggp_pubdir_record *records, int next_offset, - void *user_data) +static void +ggp_pubdir_request_buddy_alias_got(PurpleConnection *gc, int records_count, + const ggp_pubdir_record *records, + G_GNUC_UNUSED int next_offset, + G_GNUC_UNUSED gpointer data) { uin_t uin; const gchar *alias; @@ -585,7 +588,8 @@ ggp_pubdir_search_execute(PurpleConnection *gc, } static void -ggp_pubdir_search_results_new(PurpleConnection *gc, GList *row, gpointer _form) +ggp_pubdir_search_results_new(PurpleConnection *gc, G_GNUC_UNUSED GList *row, + gpointer _form) { ggp_pubdir_search_form *form = _form; ggp_pubdir_search(gc, form); @@ -599,7 +603,8 @@ ggp_pubdir_search_results_close(gpointer _form) } static void -ggp_pubdir_search_results_next(PurpleConnection *gc, GList *row, gpointer _form) +ggp_pubdir_search_results_next(PurpleConnection *gc, G_GNUC_UNUSED GList *row, + gpointer _form) { ggp_pubdir_search_form *form = _form; ggp_pubdir_search_execute(gc, form, ggp_pubdir_search_results_display, @@ -607,7 +612,8 @@ ggp_pubdir_search_results_next(PurpleConnection *gc, GList *row, gpointer _form) } static void -ggp_pubdir_search_results_add(PurpleConnection *gc, GList *row, gpointer _form) +ggp_pubdir_search_results_add(PurpleConnection *gc, GList *row, + G_GNUC_UNUSED gpointer form) { purple_blist_request_add_buddy(purple_connection_get_account(gc), g_list_nth_data(row, 0), NULL, @@ -615,14 +621,16 @@ ggp_pubdir_search_results_add(PurpleConnection *gc, GList *row, gpointer _form) } static void -ggp_pubdir_search_results_im(PurpleConnection *gc, GList *row, gpointer _form) +ggp_pubdir_search_results_im(PurpleConnection *gc, GList *row, + G_GNUC_UNUSED gpointer form) { purple_conversation_present(PURPLE_CONVERSATION(purple_im_conversation_new( purple_connection_get_account(gc), g_list_nth_data(row, 0)))); } static void -ggp_pubdir_search_results_info(PurpleConnection *gc, GList *row, gpointer _form) +ggp_pubdir_search_results_info(PurpleConnection *gc, GList *row, + G_GNUC_UNUSED gpointer form) { ggp_pubdir_get_info_protocol(NULL, gc, g_list_nth_data(row, 0)); } @@ -922,8 +930,9 @@ ggp_pubdir_set_info_request(PurpleConnection *gc, PurpleRequestFields *fields) static void ggp_pubdir_set_info_dialog(PurpleConnection *gc, int records_count, - const ggp_pubdir_record *records, int next_offset, - void *user_data) + const ggp_pubdir_record *records, + G_GNUC_UNUSED int next_offset, + G_GNUC_UNUSED gpointer data) { PurpleRequestFields *fields; PurpleRequestFieldGroup *group; diff --git a/libpurple/protocols/gg/purplew.c b/libpurple/protocols/gg/purplew.c index 9c88be5c05..37dc979f0a 100644 --- a/libpurple/protocols/gg/purplew.c +++ b/libpurple/protocols/gg/purplew.c @@ -46,8 +46,9 @@ guint ggp_purplew_http_input_add(struct gg_http *http_req, func, user_data); } -static void ggp_purplew_request_processing_cancel( - ggp_purplew_request_processing_handle *handle, gint id) +static void +ggp_purplew_request_processing_cancel(ggp_purplew_request_processing_handle *handle, + G_GNUC_UNUSED gint id) { handle->cancel_cb(handle->gc, handle->user_data); g_free(handle); diff --git a/libpurple/protocols/gg/roster.c b/libpurple/protocols/gg/roster.c index 8408b13b9c..c688fb6cce 100644 --- a/libpurple/protocols/gg/roster.c +++ b/libpurple/protocols/gg/roster.c @@ -342,7 +342,7 @@ void ggp_roster_version(PurpleConnection *gc, ******************************************************************************/ void -ggp_roster_alias_buddy(PurpleProtocolServer *protocol_server, +ggp_roster_alias_buddy(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, PurpleConnection *gc, const gchar *who, const gchar *alias) { @@ -363,7 +363,7 @@ ggp_roster_alias_buddy(PurpleProtocolServer *protocol_server, } void -ggp_roster_group_buddy(PurpleProtocolServer *protocol_server, +ggp_roster_group_buddy(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, PurpleConnection *gc, const gchar *who, const gchar *old_group, const gchar *new_group) { @@ -387,9 +387,9 @@ ggp_roster_group_buddy(PurpleProtocolServer *protocol_server, } void -ggp_roster_rename_group(PurpleProtocolServer *protocol_server, +ggp_roster_rename_group(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, PurpleConnection *gc, const gchar *old_name, - PurpleGroup *group, GList *moved_buddies) + PurpleGroup *group, G_GNUC_UNUSED GList *moved_buddies) { ggp_roster_session_data *rdata = ggp_roster_get_rdata(gc); ggp_roster_change *change; @@ -406,9 +406,10 @@ ggp_roster_rename_group(PurpleProtocolServer *protocol_server, } void -ggp_roster_add_buddy(PurpleProtocolServer *protocol_server, +ggp_roster_add_buddy(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, PurpleConnection *gc, PurpleBuddy *buddy, - PurpleGroup *group, const gchar *message) + G_GNUC_UNUSED PurpleGroup *group, + G_GNUC_UNUSED const gchar *message) { g_return_if_fail(gc != NULL); g_return_if_fail(buddy != NULL); @@ -420,9 +421,9 @@ ggp_roster_add_buddy(PurpleProtocolServer *protocol_server, } void -ggp_roster_remove_buddy(PurpleProtocolServer *protocol_server, +ggp_roster_remove_buddy(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, PurpleConnection *gc, PurpleBuddy *buddy, - PurpleGroup *group) + G_GNUC_UNUSED PurpleGroup *group) { ggp_roster_session_data *rdata = ggp_roster_get_rdata(gc); ggp_roster_change *change; diff --git a/libpurple/protocols/gg/status.c b/libpurple/protocols/gg/status.c index 8d8a971de0..20f2799d12 100644 --- a/libpurple/protocols/gg/status.c +++ b/libpurple/protocols/gg/status.c @@ -83,7 +83,7 @@ static gchar * ggp_status_validate_description(const gchar* msg) GList * ggp_status_types(G_GNUC_UNUSED PurpleProtocol *protocol, - PurpleAccount *account) + G_GNUC_UNUSED PurpleAccount *account) { GList *types = NULL; @@ -252,7 +252,7 @@ gboolean ggp_status_set(PurpleAccount *account, int status, const gchar* msg) } void -ggp_status_set_purplestatus(PurpleProtocolServer *protocol_server, +ggp_status_set_purplestatus(G_GNUC_UNUSED PurpleProtocolServer *protocol_server, PurpleAccount *account, PurpleStatus *status) { int status_gg; @@ -453,7 +453,9 @@ void ggp_status_got_others_buddy(PurpleConnection *gc, uin_t uin, int status, } char * -ggp_status_buddy_text(PurpleProtocolClient *client, PurpleBuddy *buddy) { +ggp_status_buddy_text(G_GNUC_UNUSED PurpleProtocolClient *client, + PurpleBuddy *buddy) +{ ggp_buddy_data *buddy_data = ggp_buddy_get_data(buddy); const gchar *purple_message; diff --git a/libpurple/protocols/gg/tcpsocket.c b/libpurple/protocols/gg/tcpsocket.c index ad540305a4..5f9fa71c6a 100644 --- a/libpurple/protocols/gg/tcpsocket.c +++ b/libpurple/protocols/gg/tcpsocket.c @@ -171,15 +171,15 @@ ggp_tcpsocket_connect(void *_gc, const char *host, int port, int is_tls, } static void -ggp_tcpsocket_close(void *_gc, void *_data) -{ +ggp_tcpsocket_close(G_GNUC_UNUSED void *_gc, void *_data) { GGPTcpSocketData *data = _data; ggp_tcp_socket_data_free(data); } static ssize_t -ggp_tcpsocket_read(void *_gc, void *_data, unsigned char *buffer, size_t bufsize) +ggp_tcpsocket_read(G_GNUC_UNUSED void *_gc, void *_data, + unsigned char *buffer, size_t bufsize) { GGPTcpSocketData *data = _data; GPollableInputStream *input; @@ -211,7 +211,8 @@ ggp_tcpsocket_read(void *_gc, void *_data, unsigned char *buffer, size_t bufsize } static ssize_t -ggp_tcpsocket_write(void *_gc, void *_data, const unsigned char *data_buf, size_t len) +ggp_tcpsocket_write(G_GNUC_UNUSED void *_gc, void *_data, + const unsigned char *data_buf, size_t len) { GGPTcpSocketData *data = _data; GPollableOutputStream *output; diff --git a/libpurple/protocols/gg/validator.c b/libpurple/protocols/gg/validator.c index 30e8054700..2403abe360 100644 --- a/libpurple/protocols/gg/validator.c +++ b/libpurple/protocols/gg/validator.c @@ -33,8 +33,9 @@ #include <glib/gi18n-lib.h> -gboolean ggp_validator_password(PurpleRequestField *field, gchar **errmsg, - void *user_data) +gboolean +ggp_validator_password(PurpleRequestField *field, gchar **errmsg, + G_GNUC_UNUSED gpointer data) { const char *value; |