diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-02-23 02:22:38 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-02-24 22:20:22 +0000 |
commit | d3b286cb434ed228e7b62cc70cb293e7a5554bfa (patch) | |
tree | 9ab3dd66f9dba2ca861ba8c6e098fb96754aa80b /auto_tests/simple_conference_test.c | |
parent | afc80922e720f5d2a93bdfb3745da058e5ddf81b (diff) |
Fix a bunch of compiler warnings and remove suppressions.
Diffstat (limited to 'auto_tests/simple_conference_test.c')
-rw-r--r-- | auto_tests/simple_conference_test.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/auto_tests/simple_conference_test.c b/auto_tests/simple_conference_test.c index ad17d02e..7e07c45a 100644 --- a/auto_tests/simple_conference_test.c +++ b/auto_tests/simple_conference_test.c | |||
@@ -47,11 +47,13 @@ static void handle_conference_invite(Tox *tox, uint32_t friend_number, TOX_CONFE | |||
47 | fprintf(stderr, "\nhandle_conference_invite(#%d, %d, %d, uint8_t[%zd], _)\n", state->id, friend_number, type, length); | 47 | fprintf(stderr, "\nhandle_conference_invite(#%d, %d, %d, uint8_t[%zd], _)\n", state->id, friend_number, type, length); |
48 | fprintf(stderr, "tox%d joining conference\n", state->id); | 48 | fprintf(stderr, "tox%d joining conference\n", state->id); |
49 | 49 | ||
50 | TOX_ERR_CONFERENCE_JOIN err; | 50 | { |
51 | state->conference = tox_conference_join(tox, friend_number, cookie, length, &err); | 51 | TOX_ERR_CONFERENCE_JOIN err; |
52 | assert(err == TOX_ERR_CONFERENCE_JOIN_OK); | 52 | state->conference = tox_conference_join(tox, friend_number, cookie, length, &err); |
53 | fprintf(stderr, "tox%d Joined conference %d\n", state->id, state->conference); | 53 | assert(err == TOX_ERR_CONFERENCE_JOIN_OK); |
54 | state->joined = true; | 54 | fprintf(stderr, "tox%d Joined conference %d\n", state->id, state->conference); |
55 | state->joined = true; | ||
56 | } | ||
55 | 57 | ||
56 | // We're tox2, so now we invite tox3. | 58 | // We're tox2, so now we invite tox3. |
57 | if (state->id == 2) { | 59 | if (state->id == 2) { |
@@ -101,7 +103,7 @@ static void handle_conference_namelist_change(Tox *tox, uint32_t conference_numb | |||
101 | } | 103 | } |
102 | } | 104 | } |
103 | 105 | ||
104 | int main() | 106 | int main(void) |
105 | { | 107 | { |
106 | setvbuf(stdout, nullptr, _IONBF, 0); | 108 | setvbuf(stdout, nullptr, _IONBF, 0); |
107 | 109 | ||