mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
a78f136f3f
commit
8ddf1795b9
|
@ -110,7 +110,7 @@
|
||||||
* scheduled for removal.
|
* scheduled for removal.
|
||||||
*/
|
*/
|
||||||
#ifndef AV_NOWARN_DEPRECATED
|
#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) \
|
# define AV_NOWARN_DEPRECATED(code) \
|
||||||
_Pragma("GCC diagnostic push") \
|
_Pragma("GCC diagnostic push") \
|
||||||
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
|
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_MAJOR 57
|
#define LIBAVUTIL_VERSION_MAJOR 57
|
||||||
#define LIBAVUTIL_VERSION_MINOR 24
|
#define LIBAVUTIL_VERSION_MINOR 24
|
||||||
#define LIBAVUTIL_VERSION_MICRO 100
|
#define LIBAVUTIL_VERSION_MICRO 101
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
||||||
LIBAVUTIL_VERSION_MINOR, \
|
LIBAVUTIL_VERSION_MINOR, \
|
||||||
|
|
Loading…
Reference in New Issue