Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions facebook/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ fb_api_cb_http_bool(PurpleHttpConnection *con, PurpleHttpResponse *res,
}

static void
fb_api_cb_mqtt_error(FbMqtt *mqtt, GError *error, gpointer data)
fb_api_cb_mqtt_error(G_GNUC_UNUSED FbMqtt *mqtt, GError *error, gpointer data)
{
FbApi *api = data;
FbApiPrivate *priv = api->priv;
Expand Down Expand Up @@ -1177,7 +1177,7 @@ fb_api_cb_publish_mark(FbApi *api, GByteArray *pload)
}

static GSList *
fb_api_event_parse(FbApi *api, FbApiEvent *event, GSList *events,
fb_api_event_parse(G_GNUC_UNUSED FbApi *api, FbApiEvent *event, GSList *events,
JsonNode *root, GError **error)
{
const gchar *str;
Expand Down Expand Up @@ -1382,7 +1382,7 @@ fb_api_cb_publish_ms_r(FbApi *api, GByteArray *pload)
}

static gchar *
fb_api_xma_parse(FbApi *api, const gchar *body, JsonNode *root, GError **error)
fb_api_xma_parse(G_GNUC_UNUSED FbApi *api, const gchar *body, JsonNode *root, GError **error)
{
const gchar *str;
const gchar *url;
Expand Down Expand Up @@ -1736,7 +1736,7 @@ fb_api_cb_publish_ms_new_message(FbApi *api, JsonNode *root, GSList *msgs, GErro
}

static GSList *
fb_api_cb_publish_ms_event(FbApi *api, JsonNode *root, GSList *events, FbApiEventType type, GError **error)
fb_api_cb_publish_ms_event(G_GNUC_UNUSED FbApi *api, JsonNode *root, GSList *events, FbApiEventType type, GError **error)
{
FbApiEvent *event;
FbJsonValues *values = NULL;
Expand Down Expand Up @@ -1941,7 +1941,7 @@ fb_api_cb_publish_p(FbApi *api, GByteArray *pload)
}

static void
fb_api_cb_mqtt_publish(FbMqtt *mqtt, const gchar *topic, GByteArray *pload,
fb_api_cb_mqtt_publish(G_GNUC_UNUSED FbMqtt *mqtt, const gchar *topic, GByteArray *pload,
gpointer data)
{
FbApi *api = data;
Expand Down Expand Up @@ -2346,7 +2346,7 @@ fb_api_cb_contacts_nodes(FbApi *api, JsonNode *root, GSList *users)

/* base64(contact:<our id>:<their id>:<whatever>) */
static GSList *
fb_api_cb_contacts_parse_removed(FbApi *api, JsonNode *node, GSList *users)
fb_api_cb_contacts_parse_removed(G_GNUC_UNUSED FbApi *api, JsonNode *node, GSList *users)
{
gsize len;
char **split;
Expand Down
40 changes: 20 additions & 20 deletions facebook/facebook.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ fb_cb_api_contacts(FbApi *api, GSList *users, gboolean complete, gpointer data)
}

static void
fb_cb_api_contacts_delta(FbApi *api, GSList *added, GSList *removed, gpointer data)
fb_cb_api_contacts_delta(G_GNUC_UNUSED FbApi *api, GSList *added, GSList *removed, gpointer data)
{
FbApiUser *user;
FbData *fata = data;
Expand Down Expand Up @@ -355,7 +355,7 @@ fb_cb_api_contacts_delta(FbApi *api, GSList *added, GSList *removed, gpointer da
}

static void
fb_cb_api_error(FbApi *api, GError *error, gpointer data)
fb_cb_api_error(G_GNUC_UNUSED FbApi *api, GError *error, gpointer data)
{
FbData *fata = data;
PurpleConnection *gc;
Expand Down Expand Up @@ -601,7 +601,7 @@ fb_cb_api_messages(FbApi *api, GSList *msgs, gpointer data)
}

static void
fb_cb_api_presences(FbApi *api, GSList *press, gpointer data)
fb_cb_api_presences(G_GNUC_UNUSED FbApi *api, GSList *press, gpointer data)
{
const gchar *statid;
FbApiPresence *pres;
Expand Down Expand Up @@ -631,7 +631,7 @@ fb_cb_api_presences(FbApi *api, GSList *press, gpointer data)
}

static void
fb_cb_api_thread(FbApi *api, FbApiThread *thrd, gpointer data)
fb_cb_api_thread(G_GNUC_UNUSED FbApi *api, FbApiThread *thrd, gpointer data)
{
const gchar *name;
FbApiUser *user;
Expand Down Expand Up @@ -688,7 +688,7 @@ fb_cb_api_thread(FbApi *api, FbApiThread *thrd, gpointer data)
}

static void
fb_cb_api_thread_create(FbApi *api, FbId tid, gpointer data)
fb_cb_api_thread_create(G_GNUC_UNUSED FbApi *api, FbId tid, gpointer data)
{
FbData *fata = data;
gchar sid[FB_ID_STRMAX];
Expand All @@ -705,7 +705,7 @@ fb_cb_api_thread_create(FbApi *api, FbId tid, gpointer data)
}

static void
fb_cb_api_thread_kicked(FbApi *api, FbApiThread *thrd, gpointer data)
fb_cb_api_thread_kicked(G_GNUC_UNUSED FbApi *api, FbApiThread *thrd, gpointer data)
{
FbData *fata = data;
gchar tid[FB_ID_STRMAX];
Expand Down Expand Up @@ -738,7 +738,7 @@ fb_cb_api_thread_kicked(FbApi *api, FbApiThread *thrd, gpointer data)
}

static void
fb_cb_api_threads(FbApi *api, GSList *thrds, gpointer data)
fb_cb_api_threads(G_GNUC_UNUSED FbApi *api, GSList *thrds, gpointer data)
{
const gchar *alias;
FbApiUser *user;
Expand Down Expand Up @@ -801,7 +801,7 @@ fb_cb_api_threads(FbApi *api, GSList *thrds, gpointer data)
}

static void
fb_cb_api_typing(FbApi *api, FbApiTyping *typg, gpointer data)
fb_cb_api_typing(G_GNUC_UNUSED FbApi *api, FbApiTyping *typg, gpointer data)
{
FbData *fata = data;
gchar uid[FB_ID_STRMAX];
Expand Down Expand Up @@ -1089,7 +1089,7 @@ fb_close(PurpleConnection *gc)
}

static GList *
fb_status_types(PurpleAccount *acct)
fb_status_types(G_GNUC_UNUSED PurpleAccount *acct)
{
PurpleStatusType *type;
GList *types = NULL;
Expand All @@ -1115,14 +1115,14 @@ fb_status_types(PurpleAccount *acct)
}

static const char *
fb_list_icon(PurpleAccount *account, PurpleBuddy *buddy)
fb_list_icon(G_GNUC_UNUSED PurpleAccount *account, G_GNUC_UNUSED PurpleBuddy *buddy)
{
return "facebook";
}

static void
fb_client_tooltip_text(PurpleBuddy *buddy, PurpleNotifyUserInfo *info,
gboolean full)
G_GNUC_UNUSED gboolean full)
{
const gchar *name;
PurplePresence *pres;
Expand Down Expand Up @@ -1167,7 +1167,7 @@ fb_client_blist_node_menu(PurpleBlistNode *node)
}

static gboolean
fb_client_offline_message(const PurpleBuddy *buddy)
fb_client_offline_message(G_GNUC_UNUSED const PurpleBuddy *buddy)
{
return TRUE;
}
Expand Down Expand Up @@ -1255,7 +1255,7 @@ fb_chat_info(PurpleConnection *)
}

static GHashTable *
fb_chat_info_defaults(PurpleConnection *gc, const gchar *name)
fb_chat_info_defaults(G_GNUC_UNUSED PurpleConnection *gc, const gchar *name)
{
GHashTable *data;

Expand Down Expand Up @@ -1315,7 +1315,7 @@ fb_chat_get_name(GHashTable *data)
}

static void
fb_chat_invite(PurpleConnection *gc, gint id, const gchar *msg,
fb_chat_invite(PurpleConnection *gc, gint id, G_GNUC_UNUSED const gchar *msg,
const gchar *who)
{
const gchar *name;
Expand Down Expand Up @@ -1458,8 +1458,8 @@ fb_roomlist_cancel(PurpleRoomlist *list)
}

static PurpleCmdRet
fb_cmd_kick(PurpleConversation *conv, const gchar *cmd, gchar **args,
gchar **error, gpointer data)
fb_cmd_kick(PurpleConversation *conv, G_GNUC_UNUSED const gchar *cmd, gchar **args,
gchar **error, G_GNUC_UNUSED gpointer data)
{
const gchar *name;
FbApi *api;
Expand Down Expand Up @@ -1500,8 +1500,8 @@ fb_cmd_kick(PurpleConversation *conv, const gchar *cmd, gchar **args,
}

static PurpleCmdRet
fb_cmd_leave(PurpleConversation *conv, const gchar *cmd, gchar **args,
gchar **error, gpointer data)
fb_cmd_leave(PurpleConversation *conv, G_GNUC_UNUSED const gchar *cmd, G_GNUC_UNUSED gchar **args,
G_GNUC_UNUSED gchar **error, G_GNUC_UNUSED gpointer data)
{
const gchar *name;
FbApi *api;
Expand Down Expand Up @@ -1567,7 +1567,7 @@ fb_cmds_unregister(void)
}

static gboolean
plugin_load(PurplePlugin *plugin)
plugin_load(G_GNUC_UNUSED PurplePlugin *plugin)
{
fb_cmds_register();
_purple_socket_init();
Expand All @@ -1576,7 +1576,7 @@ plugin_load(PurplePlugin *plugin)
}

static gboolean
plugin_unload(PurplePlugin *plugin)
plugin_unload(G_GNUC_UNUSED PurplePlugin *plugin)
{
fb_cmds_unregister();
purple_http_uninit();
Expand Down
10 changes: 5 additions & 5 deletions facebook/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ fb_mqtt_ping(FbMqtt *mqtt)
}

static void
fb_mqtt_cb_read(gpointer data, gint fd, PurpleInputCondition cond)
fb_mqtt_cb_read(gpointer data, G_GNUC_UNUSED gint fd, G_GNUC_UNUSED PurpleInputCondition cond)
{
FbMqtt *mqtt = data;
FbMqttMessage *msg;
Expand Down Expand Up @@ -528,7 +528,7 @@ fb_mqtt_read(FbMqtt *mqtt, FbMqttMessage *msg)
}

static void
fb_mqtt_cb_write(gpointer data, gint fd, PurpleInputCondition cond)
fb_mqtt_cb_write(gpointer data, G_GNUC_UNUSED gint fd, G_GNUC_UNUSED PurpleInputCondition cond)
{
FbMqtt *mqtt = data;
FbMqttPrivate *priv = mqtt->priv;
Expand Down Expand Up @@ -586,8 +586,8 @@ fb_mqtt_write(FbMqtt *mqtt, FbMqttMessage *msg)
}

static void
fb_mqtt_cb_open(gpointer data, PurpleSslConnection *ssl,
PurpleInputCondition cond)
fb_mqtt_cb_open(gpointer data, G_GNUC_UNUSED PurpleSslConnection *ssl,
G_GNUC_UNUSED PurpleInputCondition cond)
{
FbMqtt *mqtt = data;
FbMqttPrivate *priv = mqtt->priv;
Expand All @@ -599,7 +599,7 @@ fb_mqtt_cb_open(gpointer data, PurpleSslConnection *ssl,
}

static void
fb_mqtt_cb_open_error(PurpleSslConnection *ssl, PurpleSslErrorType error,
fb_mqtt_cb_open_error(G_GNUC_UNUSED PurpleSslConnection *ssl, PurpleSslErrorType error,
gpointer data)
{
const gchar *str;
Expand Down
8 changes: 4 additions & 4 deletions facebook/purple-http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ static gboolean _purple_http_recv_body(PurpleHttpConnection *hc,
return _purple_http_recv_body_data(hc, buf, len);
}

static gboolean _purple_http_recv_loopbody(PurpleHttpConnection *hc, gint fd)
static gboolean _purple_http_recv_loopbody(PurpleHttpConnection *hc, G_GNUC_UNUSED gint fd)
{
int len;
gchar buf[4096];
Expand Down Expand Up @@ -1339,7 +1339,7 @@ static gboolean _purple_http_recv_loopbody(PurpleHttpConnection *hc, gint fd)
return got_anything;
}

static void _purple_http_recv(gpointer _hc, gint fd, PurpleInputCondition cond)
static void _purple_http_recv(gpointer _hc, gint fd, G_GNUC_UNUSED PurpleInputCondition cond)
{
PurpleHttpConnection *hc = _hc;

Expand Down Expand Up @@ -1374,7 +1374,7 @@ static void _purple_http_send_got_data(PurpleHttpConnection *hc,
hc->request->contents_length = estimated_length;
}

static void _purple_http_send(gpointer _hc, gint fd, PurpleInputCondition cond)
static void _purple_http_send(gpointer _hc, G_GNUC_UNUSED gint fd, G_GNUC_UNUSED PurpleInputCondition cond)
{
PurpleHttpConnection *hc = _hc;
int written, write_len;
Expand Down Expand Up @@ -3264,7 +3264,7 @@ void purple_http_init(void)
purple_http_cancelling_gc = g_hash_table_new(g_direct_hash, g_direct_equal);
}

static void purple_http_foreach_conn_cancel(gpointer _hc, gpointer user_data)
static void purple_http_foreach_conn_cancel(gpointer _hc, G_GNUC_UNUSED gpointer user_data)
{
PurpleHttpConnection *hc = _hc;
purple_http_conn_cancel(hc);
Expand Down
4 changes: 2 additions & 2 deletions facebook/purple-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ _purple_socket_connected_raw(gpointer _ps, gint fd, const gchar *error_message)

static void
_purple_socket_connected_tls(gpointer _ps, PurpleSslConnection *tls_connection,
PurpleInputCondition cond)
G_GNUC_UNUSED PurpleInputCondition cond)
{
PurpleSocket *ps = _ps;

Expand All @@ -218,7 +218,7 @@ _purple_socket_connected_tls(gpointer _ps, PurpleSslConnection *tls_connection,
}

static void
_purple_socket_connected_tls_error(PurpleSslConnection *ssl_connection,
_purple_socket_connected_tls_error(G_GNUC_UNUSED PurpleSslConnection *ssl_connection,
PurpleSslErrorType error, gpointer _ps)
{
PurpleSocket *ps = _ps;
Expand Down
2 changes: 1 addition & 1 deletion facebook/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ fb_util_request_buddy_ok(gpointer *mata, PurpleRequestFields *fields)
}

static void
fb_util_request_buddy_cancel(gpointer *mata, PurpleRequestFields *fields)
fb_util_request_buddy_cancel(gpointer *mata, G_GNUC_UNUSED PurpleRequestFields *fields)
{
FbUtilRequestBuddyFunc func = mata[1];
gpointer data = mata[2];
Expand Down