diff --git a/libavutil/attributes.h b/libavutil/attributes.h index 54d1901116..e840ce8f79 100644 --- a/libavutil/attributes.h +++ b/libavutil/attributes.h @@ -158,7 +158,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