libavutil: Define the noreturn attribute for clang in MSVC mode as well
authorMartin Storsjö <martin@martin.st>
Tue, 21 Mar 2017 12:26:27 +0000 (14:26 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 21 Mar 2017 21:57:21 +0000 (22:57 +0100)
This is a follow-up to f637046d313.

Without the noreturn attribute set, avconv_opt.c fails to build after
d2e6dd32a44 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>
libavutil/attributes.h

index c770f52..cd4e299 100644 (file)
 #    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