avutil/opencl_internal: add av_warn_unused_result
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sat, 31 Oct 2015 14:36:22 +0000 (10:36 -0400)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sat, 31 Oct 2015 14:40:54 +0000 (10:40 -0400)
commit8a5b60a6b1d841b74c2670f5165c8b05321f395a
tree4563051f26fb9971a898f63a0e90476e1924826d
parent7910a2c26939c4e2400af930b0995ada56a895c8
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 <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavutil/opencl_internal.h