diff options
author | Gary Kramlich <grim@reaperworld.com> | 2023-02-23 23:44:43 -0600 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2023-02-23 23:44:43 -0600 |
commit | 39624b573a4e3a12207c5aca3da0ef6990d3c322 (patch) | |
tree | d7e68c40c4dd281744c96bfee2dd6ea91891c45f /libpurple/tests/test_protocol_xfer.c | |
parent | dbc8df7cc2cad5d1a85d5a484df165cc2199f866 (diff) | |
download | pidgin-39624b573a4e3a12207c5aca3da0ef6990d3c322.tar.gz |
Update the libpurple tests for the warning level 2 update
Testing Done:
used `find libpurple/tests/ -iname "*.c" --execdir touch {} \;` and verified the warnings were all gone.
Reviewed at https://reviews.imfreedom.org/r/2278/
Diffstat (limited to 'libpurple/tests/test_protocol_xfer.c')
-rw-r--r-- | libpurple/tests/test_protocol_xfer.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/libpurple/tests/test_protocol_xfer.c b/libpurple/tests/test_protocol_xfer.c index 035522d600..53d715ba1d 100644 --- a/libpurple/tests/test_protocol_xfer.c +++ b/libpurple/tests/test_protocol_xfer.c @@ -46,21 +46,31 @@ typedef struct { static gboolean -test_purple_protocol_xfer_can_receive(PurpleProtocolXfer *prplxfer, PurpleConnection *c, const gchar *who) { +test_purple_protocol_xfer_can_receive(PurpleProtocolXfer *prplxfer, + G_GNUC_UNUSED PurpleConnection *c, + G_GNUC_UNUSED const gchar *who) +{ TestPurpleProtocolXfer *test_xfer = (TestPurpleProtocolXfer *)prplxfer; return test_xfer->can_send; } static void -test_purple_protocol_xfer_send_file(PurpleProtocolXfer *prplxfer, PurpleConnection *c, const gchar *who, const gchar *filename) { +test_purple_protocol_xfer_send_file(PurpleProtocolXfer *prplxfer, + G_GNUC_UNUSED PurpleConnection *c, + G_GNUC_UNUSED const gchar *who, + G_GNUC_UNUSED const gchar *filename) +{ TestPurpleProtocolXfer *test_xfer = (TestPurpleProtocolXfer *)prplxfer; test_xfer->send_called = TRUE; } static PurpleXfer * -test_purple_protocol_xfer_new_xfer(PurpleProtocolXfer *prplxfer, PurpleConnection *c, const gchar *who) { +test_purple_protocol_xfer_new_xfer(PurpleProtocolXfer *prplxfer, + PurpleConnection *c, + const gchar *who) +{ TestPurpleProtocolXfer *test_xfer = (TestPurpleProtocolXfer *)prplxfer; PurpleAccount *a = purple_connection_get_account(c); @@ -87,11 +97,11 @@ G_DEFINE_TYPE_WITH_CODE( ); static void -test_purple_protocol_xfer_init(TestPurpleProtocolXfer *prplxfer) { +test_purple_protocol_xfer_init(G_GNUC_UNUSED TestPurpleProtocolXfer *prplxfer) { } static void -test_purple_protocol_xfer_class_init(TestPurpleProtocolXferClass *klass) { +test_purple_protocol_xfer_class_init(G_GNUC_UNUSED TestPurpleProtocolXferClass *klass) { } static TestPurpleProtocolXfer * |