diff options
author | Reinhard Tartler <siretart@tauware.de> | 2012-07-01 19:38:40 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2012-07-03 17:26:51 +0200 |
commit | 22662ca56086ddb7240dc84a68ad89c785682f36 (patch) | |
tree | d7d942fd414e67a575d43d2e7bf64fe6786312ef /libavutil/attributes.h | |
parent | a1641e954091760a759e6281ccc360d3817f9397 (diff) | |
download | ffmpeg-22662ca56086ddb7240dc84a68ad89c785682f36.tar.gz |
attributes: add av_noreturn
Also use it in the declaration of the various exit_program
implementations in avtools.
inspired by a clang-scan report.
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r-- | libavutil/attributes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/attributes.h b/libavutil/attributes.h index 7a9b18b808..292a0a1a88 100644 --- a/libavutil/attributes.h +++ b/libavutil/attributes.h @@ -113,4 +113,10 @@ # define av_printf_format(fmtpos, attrpos) #endif +#if AV_GCC_VERSION_AT_LEAST(2,5) +# define av_noreturn __attribute__((noreturn)) +#else +# define av_noreturn +#endif + #endif /* AVUTIL_ATTRIBUTES_H */ |