]> git.sesse.net Git - ffmpeg/commitdiff
lavu/hwcontext_opecl: fix the build warning
authorJun Zhao <mypopydev@gmail.com>
Wed, 30 May 2018 00:13:13 +0000 (08:13 +0800)
committerJun Zhao <jun.zhao@intel.com>
Thu, 7 Jun 2018 11:38:58 +0000 (19:38 +0800)
fix the build warning when use Portable Computing Language (pocl).

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
libavutil/hwcontext_opencl.c

index e08d7bcb9b91c45e2a40bcd93659614ea958b7e9..07458c2fb109ecf55c79e53a75a3eb4581cb59a8 100644 (file)
@@ -2810,7 +2810,7 @@ static int opencl_map_from(AVHWFramesContext *hwfc, AVFrame *dst,
 static int opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst,
                          const AVFrame *src, int flags)
 {
-    OpenCLDeviceContext *priv = hwfc->device_ctx->internal->priv;
+    av_unused OpenCLDeviceContext *priv = hwfc->device_ctx->internal->priv;
     av_assert0(dst->format == AV_PIX_FMT_OPENCL);
     switch (src->format) {
 #if HAVE_OPENCL_DRM_BEIGNET
@@ -2851,7 +2851,7 @@ static int opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst,
 static int opencl_frames_derive_to(AVHWFramesContext *dst_fc,
                                    AVHWFramesContext *src_fc, int flags)
 {
-    OpenCLDeviceContext *priv = dst_fc->device_ctx->internal->priv;
+    av_unused OpenCLDeviceContext *priv = dst_fc->device_ctx->internal->priv;
     switch (src_fc->device_ctx->type) {
 #if HAVE_OPENCL_DRM_BEIGNET
     case AV_HWDEVICE_TYPE_DRM: