diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2022-12-11 22:56:34 -0600 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2022-12-11 22:56:34 -0600 |
commit | 67bbadace042845934bd214b313f0232b453d03b (patch) | |
tree | db28f02b2a93682e5715f569348c8058fa3eae43 /libpurple/buddylist.c | |
parent | 860eb6ee142b525b12be58eb770d5db4204800a3 (diff) | |
download | pidgin-67bbadace042845934bd214b313f0232b453d03b.tar.gz |
Bump C standard to C99 for libpurple files and fix warnings
Testing Done:
Touched all source files and compiled; saw no new warnings.
Reviewed at https://reviews.imfreedom.org/r/2122/
Diffstat (limited to 'libpurple/buddylist.c')
-rw-r--r-- | libpurple/buddylist.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libpurple/buddylist.c b/libpurple/buddylist.c index fd80ff855e..df3d2bfe45 100644 --- a/libpurple/buddylist.c +++ b/libpurple/buddylist.c @@ -402,7 +402,7 @@ purple_blist_sync(void) } static gboolean -save_cb(gpointer data) +save_cb(G_GNUC_UNUSED gpointer data) { purple_blist_sync(); save_timer = 0; @@ -417,7 +417,8 @@ purple_blist_real_schedule_save(void) } static void -purple_blist_real_save_account(PurpleBuddyList *list, PurpleAccount *account) +purple_blist_real_save_account(G_GNUC_UNUSED PurpleBuddyList *list, + G_GNUC_UNUSED PurpleAccount *account) { #if 1 purple_blist_real_schedule_save(); @@ -431,7 +432,8 @@ purple_blist_real_save_account(PurpleBuddyList *list, PurpleAccount *account) } static void -purple_blist_real_save_node(PurpleBuddyList *list, PurpleBlistNode *node) +purple_blist_real_save_node(G_GNUC_UNUSED PurpleBuddyList *list, + G_GNUC_UNUSED PurpleBlistNode *node) { purple_blist_real_schedule_save(); } @@ -725,7 +727,7 @@ purple_blist_get_root(PurpleBuddyList *list) } static void -append_buddy(gpointer key, gpointer value, gpointer user_data) +append_buddy(G_GNUC_UNUSED gpointer key, gpointer value, gpointer user_data) { GSList **list = user_data; *list = g_slist_prepend(*list, value); @@ -1616,7 +1618,8 @@ PurpleBuddy *purple_blist_find_buddy_in_group(PurpleAccount *account, const char return g_hash_table_lookup(priv->buddies, &hb); } -static void find_acct_buddies(gpointer key, gpointer value, gpointer data) +static void +find_acct_buddies(G_GNUC_UNUSED gpointer key, gpointer value, gpointer data) { PurpleBuddy *buddy = value; GSList **list = data; |