attributes: add av_noreturn

Also use it in the declaration of the various exit_program
implementations in avtools.

inspired by a clang-scan report.
This commit is contained in:
Reinhard Tartler
2012-07-01 19:38:40 +02:00
parent a1641e9540
commit 22662ca560
2 changed files with 7 additions and 1 deletions

View File

@@ -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 */