diff options
author | Felicia Lim <flim@google.com> | 2017-07-12 03:22:32 +0300 |
---|---|---|
committer | Felicia Lim <flim@google.com> | 2017-07-12 23:59:11 +0300 |
commit | ed08a3b0ba736d007c1a87b9c5c077b01170e7be (patch) | |
tree | da5d74d45c30cabf6e9b5f104239397145eff5db | |
parent | f57c904732b34d5ee11802d59377607684ddb257 (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.
-rw-r--r-- | tests/test_opus_common.h | 2 |
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) { |