From 8a5b60a6b1d841b74c2670f5165c8b05321f395a Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Sat, 31 Oct 2015 10:36:22 -0400 Subject: avutil/opencl_internal: add av_warn_unused_result clSetKernelArg can return an error due to lack of memory (for instance): https://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clSetKernelArg.html. Thus this error must be propagated. Currently should not trigger warnings, but adds robustness. Untested. Reviewed-by: Michael Niedermayer Signed-off-by: Ganesh Ajjanagadde --- libavutil/opencl_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavutil/opencl_internal.h') diff --git a/libavutil/opencl_internal.h b/libavutil/opencl_internal.h index dacd930ac9..ddc6d3acba 100644 --- a/libavutil/opencl_internal.h +++ b/libavutil/opencl_internal.h @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "attributes.h" #include "opencl.h" #define FF_OPENCL_PARAM_INFO(a) ((void*)(&(a))), (sizeof(a)) @@ -30,4 +31,5 @@ typedef struct { void *ctx; } FFOpenclParam; +av_warn_unused_result int avpriv_opencl_set_parameter(FFOpenclParam *opencl_param, ...); -- cgit v1.2.3