diff options
author | James Zern <jzern@google.com> | 2015-03-18 14:35:49 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2015-03-18 14:35:49 -0700 |
commit | 3ab1c0227ac6fe797890e731cd7782745c400b2b (patch) | |
tree | 2d30d25c9030f64958ceaad112d7b4b4868e78c6 /vpx/internal | |
parent | c4367b9b51782969d3b37ead6694d19ef9bfb58c (diff) | |
download | libvpx-3ab1c0227ac6fe797890e731cd7782745c400b2b.tar libvpx-3ab1c0227ac6fe797890e731cd7782745c400b2b.tar.gz libvpx-3ab1c0227ac6fe797890e731cd7782745c400b2b.tar.bz2 libvpx-3ab1c0227ac6fe797890e731cd7782745c400b2b.zip |
fix static analysis warnings related to CHECK_MEM_ERROR
mark vpx_internal_error as noreturn under the analyzer
Change-Id: If214a0e740aab9b82cc04f4492eb77a7a07ef7ab
Diffstat (limited to 'vpx/internal')
-rw-r--r-- | vpx/internal/vpx_codec_internal.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vpx/internal/vpx_codec_internal.h b/vpx/internal/vpx_codec_internal.h index cbfffd0af..7380fcc7e 100644 --- a/vpx/internal/vpx_codec_internal.h +++ b/vpx/internal/vpx_codec_internal.h @@ -425,10 +425,18 @@ struct vpx_internal_error_info { 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" |