diff options
Diffstat (limited to 'auto_tests/toxav_basic_test.c')
-rw-r--r-- | auto_tests/toxav_basic_test.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/auto_tests/toxav_basic_test.c b/auto_tests/toxav_basic_test.c index 7598c0db..423cd03d 100644 --- a/auto_tests/toxav_basic_test.c +++ b/auto_tests/toxav_basic_test.c | |||
@@ -49,11 +49,19 @@ typedef struct { | |||
49 | */ | 49 | */ |
50 | void t_toxav_call_cb(ToxAV *av, uint32_t friend_number, bool audio_enabled, bool video_enabled, void *user_data) | 50 | void t_toxav_call_cb(ToxAV *av, uint32_t friend_number, bool audio_enabled, bool video_enabled, void *user_data) |
51 | { | 51 | { |
52 | (void) av; | ||
53 | (void) friend_number; | ||
54 | (void) audio_enabled; | ||
55 | (void) video_enabled; | ||
56 | |||
52 | printf("Handling CALL callback\n"); | 57 | printf("Handling CALL callback\n"); |
53 | ((CallControl*)user_data)->incoming = true; | 58 | ((CallControl*)user_data)->incoming = true; |
54 | } | 59 | } |
55 | void t_toxav_call_state_cb(ToxAV *av, uint32_t friend_number, uint32_t state, void *user_data) | 60 | void t_toxav_call_state_cb(ToxAV *av, uint32_t friend_number, uint32_t state, void *user_data) |
56 | { | 61 | { |
62 | (void) av; | ||
63 | (void) friend_number; | ||
64 | |||
57 | printf("Handling CALL STATE callback: %d\n", state); | 65 | printf("Handling CALL STATE callback: %d\n", state); |
58 | ((CallControl*)user_data)->state = state; | 66 | ((CallControl*)user_data)->state = state; |
59 | } | 67 | } |
@@ -92,6 +100,8 @@ void t_toxav_receive_audio_frame_cb(ToxAV *av, uint32_t friend_number, | |||
92 | } | 100 | } |
93 | void t_accept_friend_request_cb(Tox *m, const uint8_t *public_key, const uint8_t *data, size_t length, void *userdata) | 101 | void t_accept_friend_request_cb(Tox *m, const uint8_t *public_key, const uint8_t *data, size_t length, void *userdata) |
94 | { | 102 | { |
103 | (void) userdata; | ||
104 | |||
95 | if (length == 7 && memcmp("gentoo", data, 7) == 0) { | 105 | if (length == 7 && memcmp("gentoo", data, 7) == 0) { |
96 | assert(tox_friend_add_norequest(m, public_key, NULL) != (uint32_t) ~0); | 106 | assert(tox_friend_add_norequest(m, public_key, NULL) != (uint32_t) ~0); |
97 | } | 107 | } |
@@ -433,6 +443,9 @@ Suite *tox_suite(void) | |||
433 | } | 443 | } |
434 | int main(int argc, char *argv[]) | 444 | int main(int argc, char *argv[]) |
435 | { | 445 | { |
446 | (void) argc; | ||
447 | (void) argv; | ||
448 | |||
436 | Suite *tox = tox_suite(); | 449 | Suite *tox = tox_suite(); |
437 | SRunner *test_runner = srunner_create(tox); | 450 | SRunner *test_runner = srunner_create(tox); |
438 | 451 | ||