summaryrefslogtreecommitdiff
path: root/libavutil/attributes.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-03-16 11:03:50 -0300
committerJames Almer <jamrial@gmail.com>2022-03-16 12:29:37 -0300
commit8ddf1795b96d6176b0ddcd4693c28a3da9b2ac50 (patch)
treed72ddabc8dd51cee9d187e49570731b8b310f2b1 /libavutil/attributes.h
parenta78f136f3fa039fd7ad664fd6e6e976f1448c68b (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.h2
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\"") \