shithub: libvpx

Download patch

ref: e865be95bfe09334057d4fff0a81b6da052b737a
parent: 84ec68d21aad04858f19dd91a6280a2016a278a3
parent: 3ab1c0227ac6fe797890e731cd7782745c400b2b
author: James Zern <jzern@google.com>
date: Tue Mar 24 19:56:04 EDT 2015

Merge "fix static analysis warnings related to CHECK_MEM_ERROR"

--- a/vpx/internal/vpx_codec_internal.h
+++ b/vpx/internal/vpx_codec_internal.h
@@ -425,10 +425,18 @@
   jmp_buf          jmp;
 };
 
+#define CLANG_ANALYZER_NORETURN
+#if defined(__has_feature)
+#if __has_feature(attribute_analyzer_noreturn)
+#undef CLANG_ANALYZER_NORETURN
+#define CLANG_ANALYZER_NORETURN __attribute__((analyzer_noreturn))
+#endif
+#endif
+
 void vpx_internal_error(struct vpx_internal_error_info *info,
                         vpx_codec_err_t                 error,
                         const char                     *fmt,
-                        ...);
+                        ...) CLANG_ANALYZER_NORETURN;
 
 #ifdef __cplusplus
 }  // extern "C"