Merge commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5'
authorClément Bœsch <cboesch@gopro.com>
Thu, 2 Feb 2017 10:26:05 +0000 (11:26 +0100)
committerClément Bœsch <cboesch@gopro.com>
Thu, 2 Feb 2017 10:26:05 +0000 (11:26 +0100)
* commit 'f637046d3134a331e4b5a7243ac3dfb92735b8a5':
  libavutil: Always use some GCC style attributes on clang

Merged-by: Clément Bœsch <cboesch@gopro.com>
1  2 
libavutil/attributes.h
libavutil/mem.h

  #    define attribute_deprecated
  #endif
  
- #if defined(__GNUC__)
 +/**
 + * 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")
 +#elif defined(_MSC_VER)
 +#    define AV_NOWARN_DEPRECATED(code) \
 +        __pragma(warning(push)) \
 +        __pragma(warning(disable : 4996)) \
 +        code; \
 +        __pragma(warning(pop))
 +#else
 +#    define AV_NOWARN_DEPRECATED(code) code
 +#endif
 +#endif
 +
+ #if defined(__GNUC__) || defined(__clang__)
  #    define av_unused __attribute__((unused))
  #else
  #    define av_unused
diff --cc libavutil/mem.h
Simple merge