aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/attributes.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-03-21 14:26:27 +0200
committerMartin Storsjö <martin@martin.st>2017-03-21 22:57:21 +0100
commit3aa9c523e9cf4f4a5e239ac737281e096c884907 (patch)
tree3d3ecb70ff7109df646891d35e327486a161b4a3 /libavutil/attributes.h
parenta46a4f722d2fac07c57990f0f548777622599f59 (diff)
downloadffmpeg-3aa9c523e9cf4f4a5e239ac737281e096c884907.tar.gz
libavutil: Define the noreturn attribute for clang in MSVC mode as well
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>
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r--libavutil/attributes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/attributes.h b/libavutil/attributes.h
index c770f52a43..cd4e299531 100644
--- a/libavutil/attributes.h
+++ b/libavutil/attributes.h
@@ -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