shithub: opus

Download patch

ref: ed08a3b0ba736d007c1a87b9c5c077b01170e7be
parent: f57c904732b34d5ee11802d59377607684ddb257
author: Felicia Lim <[email protected]>
date: Tue Jul 11 13:22:32 EDT 2017

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.

--- a/tests/test_opus_common.h
+++ b/tests/test_opus_common.h
@@ -64,6 +64,8 @@
 
 #ifdef __GNUC__
 __attribute__((noreturn))
+#elif defined(_MSC_VER)
+__declspec(noreturn)
 #endif
 static OPUS_INLINE void _test_failed(const char *file, int line)
 {