You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavu/attributes: introduce AV_NOWARN_DEPRECATED.
This commit is contained in:
@@ -88,6 +88,24 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable warnings about deprecated features
|
||||||
|
* This is useful for sections of code kept for backward compatibility and
|
||||||
|
* scheduled for removal.
|
||||||
|
*/
|
||||||
|
#ifndef AV_NOWARN_DEPRECATED
|
||||||
|
#if AV_GCC_VERSION_AT_LEAST(4,6)
|
||||||
|
# define AV_NOWARN_DEPRECATED(code) \
|
||||||
|
_Pragma("GCC diagnostic push") \
|
||||||
|
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
|
||||||
|
code \
|
||||||
|
_Pragma("GCC diagnostic pop")
|
||||||
|
#else
|
||||||
|
# define AV_NOWARN_DEPRECATED(code) code
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef av_unused
|
#ifndef av_unused
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
# define av_unused __attribute__((unused))
|
# define av_unused __attribute__((unused))
|
||||||
|
Reference in New Issue
Block a user