mirror of
https://github.com/xiph/opus.git
synced 2025-05-28 14:19:13 +00:00
Temporarily disable -Wnonnull around an opus_decode() call in test_opus_decode.c
Reported by wtchang in trac: https://trac.xiph.org/ticket/2160
This commit is contained in:
parent
1b633ab0dd
commit
b0949f1194
1 changed files with 7 additions and 0 deletions
|
@ -135,7 +135,14 @@ int test_decoder_code0(int no_fuzz)
|
|||
outbuf[0]=32749;
|
||||
out_samples = opus_decode(dec[t], packet, 0, outbuf, 0, fec);
|
||||
if(out_samples>0)test_failed();
|
||||
#if defined(__GNUC__) && OPUS_GNUC_PREREQ(3, 4)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wnonnull"
|
||||
#endif
|
||||
out_samples = opus_decode(dec[t], packet, 0, 0, 0, fec);
|
||||
#if defined(__GNUC__) && OPUS_GNUC_PREREQ(3, 4)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
if(out_samples>0)test_failed();
|
||||
if(outbuf[0]!=32749)test_failed();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue