Place attribute_deprecated in the right position for struct declarations
authorDiego Biurrun <diego@biurrun.de>
Wed, 22 Feb 2017 10:39:21 +0000 (11:39 +0100)
committerMark Thompson <sw@jkqxz.net>
Wed, 22 Mar 2017 19:07:32 +0000 (19:07 +0000)
libavcodec/vaapi.h:58:1: warning: attribute 'deprecated' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]

(cherry picked from commit ed6a891c364f8b0850b557d9578b8920cc15a937)
Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavcodec/vaapi.h

index e68912d..bb28455 100644 (file)
@@ -53,8 +53,7 @@
  *
  * Deprecated: use AVCodecContext.hw_frames_ctx instead.
  */
-attribute_deprecated
-struct vaapi_context {
+struct attribute_deprecated vaapi_context {
     /**
      * Window system dependent data
      *