[FFmpeg-devel] [PATCH 1/4] Place attribute_deprecated in the right position for struct declarations
Mark Thompson
sw at jkqxz.net
Wed Mar 22 00:43:55 EET 2017
From: Diego Biurrun <diego at 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 at jkqxz.net>
---
libavcodec/vaapi.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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
*
--
2.11.0
More information about the ffmpeg-devel
mailing list