diff options
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r-- | libavutil/attributes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/attributes.h b/libavutil/attributes.h index d7f2bb5c6f..c770f52a43 100644 --- a/libavutil/attributes.h +++ b/libavutil/attributes.h @@ -80,7 +80,7 @@ # define attribute_deprecated #endif -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__clang__) # define av_unused __attribute__((unused)) #else # define av_unused @@ -91,7 +91,7 @@ * away. This is useful for variables accessed only from inline * assembler without the compiler being aware. */ -#if AV_GCC_VERSION_AT_LEAST(3,1) +#if AV_GCC_VERSION_AT_LEAST(3,1) || defined(__clang__) # define av_used __attribute__((used)) #else # define av_used |