Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Harris <mark.hsj@gmail.com>2017-02-19 07:54:19 +0300
committerMark Harris <mark.hsj@gmail.com>2017-02-19 07:54:19 +0300
commitc340d83689fa40d82fa4573ba3d112a9b2e032bf (patch)
tree21549ae05c4c7c54f2d964ea8380e5a5bea5982a /tests
parentad15578102d94ac11c994be87ea11f7a0bdcc99a (diff)
test_opus_decode: Fix build on GCC 3.4 to 4.5.x
Broken by b0949f11, reported by ko-zu on GitHub.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c
index 950239e6..5197fa1d 100644
--- a/tests/test_opus_decode.c
+++ b/tests/test_opus_decode.c
@@ -135,12 +135,12 @@ 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)
+#if !defined(OPUS_BUILD) && (OPUS_GNUC_PREREQ(4, 6) || (defined(__clang_major__) && __clang_major__ >= 3))
#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)
+#if !defined(OPUS_BUILD) && (OPUS_GNUC_PREREQ(4, 6) || (defined(__clang_major__) && __clang_major__ >= 3))
#pragma GCC diagnostic pop
#endif
if(out_samples>0)test_failed();