diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-09-06 00:58:49 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-09-06 13:28:08 +0000 |
commit | f59e6ff0cb829dfd46e5383658a7b34bb512b5f2 (patch) | |
tree | 96bb3aea5b78203c140756d6ff57888ab1d1be8f /testing | |
parent | 1b2322284f0b688af3a349fe4331be15a565084c (diff) |
Ignore "unused-result" warning in super_donators code.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/av_test.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/testing/av_test.c b/testing/av_test.c index ca2b2779..a058e869 100644 --- a/testing/av_test.c +++ b/testing/av_test.c | |||
@@ -438,7 +438,10 @@ static int print_help(const char *name) | |||
438 | 438 | ||
439 | int main(int argc, char **argv) | 439 | int main(int argc, char **argv) |
440 | { | 440 | { |
441 | freopen("/dev/zero", "w", stderr); | 441 | if (freopen("/dev/zero", "w", stderr) == nullptr) { |
442 | return EXIT_FAILURE; | ||
443 | } | ||
444 | |||
442 | Pa_Initialize(); | 445 | Pa_Initialize(); |
443 | 446 | ||
444 | struct stat st; | 447 | struct stat st; |
@@ -649,10 +652,16 @@ CHECK_ARG: | |||
649 | output.hostApiSpecificStreamInfo = nullptr; | 652 | output.hostApiSpecificStreamInfo = nullptr; |
650 | 653 | ||
651 | PaError err = Pa_OpenStream(&adout, nullptr, &output, af_info.samplerate, frame_size, paNoFlag, nullptr, nullptr); | 654 | PaError err = Pa_OpenStream(&adout, nullptr, &output, af_info.samplerate, frame_size, paNoFlag, nullptr, nullptr); |
652 | assert(err == paNoError); | 655 | |
656 | if (err != paNoError) { | ||
657 | return EXIT_FAILURE; | ||
658 | } | ||
653 | 659 | ||
654 | err = Pa_StartStream(adout); | 660 | err = Pa_StartStream(adout); |
655 | assert(err == paNoError); | 661 | |
662 | if (err != paNoError) { | ||
663 | return EXIT_FAILURE; | ||
664 | } | ||
656 | 665 | ||
657 | // toxav_audio_bit_rate_set(AliceAV, 0, 64, false, nullptr); | 666 | // toxav_audio_bit_rate_set(AliceAV, 0, 64, false, nullptr); |
658 | 667 | ||