summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2016-11-01 16:10:36 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2016-11-01 16:10:36 -0400
commitb0949f1194031df3f8faec1a2b296e99ef1d840a (patch)
tree3d8db82bea1849267b3c17d6a000deb4d284d8ea
parent1b633ab0dd7bc0fce96fef6e67f2ad204f05bc60 (diff)
downloadopus-b0949f1194031df3f8faec1a2b296e99ef1d840a.tar.gz
Temporarily disable -Wnonnull around an opus_decode() call in test_opus_decode.c
Reported by wtchang in trac: https://trac.xiph.org/ticket/2160
-rw-r--r--tests/test_opus_decode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c
index e703682f..950239e6 100644
--- a/tests/test_opus_decode.c
+++ b/tests/test_opus_decode.c
@@ -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();