diff mbox

[FFmpeg-devel,1/4] Place attribute_deprecated in the right position for struct declarations

Message ID 20170321224358.21315-1-sw@jkqxz.net
State Accepted
Commit 6ff3da4f6a8e460d77bb65fed4267bf48f513fcf
Headers show

Commit Message

Mark Thompson March 21, 2017, 10:43 p.m. UTC
From: Diego Biurrun <diego@biurrun.de>

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 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

wm4 March 22, 2017, 5:22 a.m. UTC | #1
On Tue, 21 Mar 2017 22:43:55 +0000
Mark Thompson <sw@jkqxz.net> wrote:

> ...

Patches 1-4 trivially LGTM.
diff mbox

Patch

diff --git a/libavcodec/vaapi.h b/libavcodec/vaapi.h
index e68912d93b..bb28455329 100644
--- a/libavcodec/vaapi.h
+++ b/libavcodec/vaapi.h
@@ -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
      *