mirror of https://git.ffmpeg.org/ffmpeg.git
libavutil: Define the noreturn attribute for clang in MSVC mode as well
This is a follow-up tof637046d31
. Without the noreturn attribute set, avconv_opt.c fails to build afterd2e6dd32a4
with the error "control may reach end of non-void function". By making sure the noreturn attribute is set properly, this compiles as intended. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
a46a4f722d
commit
3aa9c523e9
|
@ -117,7 +117,7 @@
|
|||
# define av_printf_format(fmtpos, attrpos)
|
||||
#endif
|
||||
|
||||
#if AV_GCC_VERSION_AT_LEAST(2,5)
|
||||
#if AV_GCC_VERSION_AT_LEAST(2,5) || defined(__clang__)
|
||||
# define av_noreturn __attribute__((noreturn))
|
||||
#else
|
||||
# define av_noreturn
|
||||
|
|
Loading…
Reference in New Issue