GCC: move attribute to the start of function definition in VAAPI wrapper.
Fix compilation error: ../../base/compiler_specific.h:97:28: error: attributes are not allowed on a function-definition 97 | #define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) | ^~~~~~~~~~~~~ ../../media/gpu/vaapi/vaapi_wrapper.h:322:36: note: in expansion of macro ‘WARN_UNUSED_RESULT’ 322 | const T* data) WARN_UNUSED_RESULT { | ^~~~~~~~~~~~~~~~~~ Bug: 819294 Change-Id: I24e2e10a96182f8705fed96164550357acdb55a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2534931 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by:Hirokazu Honda <hiroh@chromium.org> Reviewed-by:
Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#831923}
Showing
Please register or sign in to comment