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:
authorFelicia Lim <flim@google.com>2017-07-12 03:22:32 +0300
committerFelicia Lim <flim@google.com>2017-07-12 23:59:11 +0300
commited08a3b0ba736d007c1a87b9c5c077b01170e7be (patch)
treeda5d74d45c30cabf6e9b5f104239397145eff5db /tests
parentf57c904732b34d5ee11802d59377607684ddb257 (diff)
Avoid -Wsometimes-uninitialized error for valid test code
|frame_size_enum| in tests/test_opus_encode.cl:117 is flagged as potentially uninitialized but get_frame_size_enum() will fail anyway if a valid value is not found.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_opus_common.h b/tests/test_opus_common.h
index ff7f0142..235cf1c1 100644
--- a/tests/test_opus_common.h
+++ b/tests/test_opus_common.h
@@ -64,6 +64,8 @@ static opus_uint32 iseed;
#ifdef __GNUC__
__attribute__((noreturn))
+#elif defined(_MSC_VER)
+__declspec(noreturn)
#endif
static OPUS_INLINE void _test_failed(const char *file, int line)
{