aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-03-27 18:23:01 +0100
committerDiego Biurrun <diego@biurrun.de>2013-08-02 19:19:02 +0200
commit3a7050ffed5ce061b114a11e4de4b77aba8efa0b (patch)
treef60adb7305f1f04290e0d2de75b41a87ce042f9f /libavutil
parent79be2c325c5ee8f7ac9e28399e51986ebe99bb3c (diff)
downloadffmpeg-3a7050ffed5ce061b114a11e4de4b77aba8efa0b.tar.gz
build: Add _Pragma macro to disable deprecated declaration warnings
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 49534d4b58..5a721f3a71 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -61,6 +61,14 @@
# define av_export
#endif
+#if HAVE_PRAGMA_DEPRECATED
+# define FF_DISABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+# define FF_ENABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
+#else
+# define FF_DISABLE_DEPRECATION_WARNINGS
+# define FF_ENABLE_DEPRECATION_WARNINGS
+#endif
+
#ifndef INT_BIT
# define INT_BIT (CHAR_BIT * sizeof(int))
#endif