[FFmpeg-cvslog] Place attribute_deprecated in the right position for struct declarations

Diego Biurrun git at videolan.org
Mon Oct 2 22:06:42 EEST 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Feb 22 11:39:21 2017 +0100| [ed6a891c364f8b0850b557d9578b8920cc15a937] | committer: Diego Biurrun

Place attribute_deprecated in the right position for struct declarations

libavcodec/vaapi.h:58:1: warning: attribute 'deprecated' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed6a891c364f8b0850b557d9578b8920cc15a937
---

 libavcodec/vaapi.h | 3 +--
 libavcodec/xvmc.h  | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/vaapi.h b/libavcodec/vaapi.h
index ceb7904bea..391368c85f 100644
--- a/libavcodec/vaapi.h
+++ b/libavcodec/vaapi.h
@@ -55,8 +55,7 @@
  *
  * Deprecated: use AVCodecContext.hw_frames_ctx instead.
  */
-attribute_deprecated
-struct vaapi_context {
+struct attribute_deprecated vaapi_context {
     /**
      * Window system dependent data
      *
diff --git a/libavcodec/xvmc.h b/libavcodec/xvmc.h
index 950ed18276..91027b9c2f 100644
--- a/libavcodec/xvmc.h
+++ b/libavcodec/xvmc.h
@@ -45,7 +45,7 @@
 #define AV_XVMC_ID                    0x1DC711C0  /**< special value to ensure that regular pixel routines haven't corrupted the struct
                                                        the number is 1337 speak for the letters IDCT MCo (motion compensation) */
 
-attribute_deprecated struct xvmc_pix_fmt {
+struct attribute_deprecated xvmc_pix_fmt {
     /** The field contains the special constant value AV_XVMC_ID.
         It is used as a test that the application correctly uses the API,
         and that there is no corruption caused by pixel routines.



More information about the ffmpeg-cvslog mailing list