diff options
author | James Almer <jamrial@gmail.com> | 2022-03-16 11:03:50 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-16 12:29:37 -0300 |
commit | 8ddf1795b96d6176b0ddcd4693c28a3da9b2ac50 (patch) | |
tree | d72ddabc8dd51cee9d187e49570731b8b310f2b1 /libavutil/attributes.h | |
parent | a78f136f3fa039fd7ad664fd6e6e976f1448c68b (diff) |
avutil/attributes: add support for clang in AV_NOWARN_DEPRECATED
Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/attributes.h')
-rw-r--r-- | libavutil/attributes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/attributes.h b/libavutil/attributes.h index 5cb9fe3452..04c615c952 100644 --- a/libavutil/attributes.h +++ b/libavutil/attributes.h @@ -110,7 +110,7 @@ * scheduled for removal. */ #ifndef AV_NOWARN_DEPRECATED -#if AV_GCC_VERSION_AT_LEAST(4,6) +#if AV_GCC_VERSION_AT_LEAST(4,6) || defined(__clang__) # define AV_NOWARN_DEPRECATED(code) \ _Pragma("GCC diagnostic push") \ _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \ |