[Beignet] [PATCH] Runtime: avoid clang warning "warning: expression result unused".

Yang Rong rong.r.yang at intel.com
Wed Aug 31 11:28:05 UTC 2016


Use implicity vector initialize instead of emplicity to avoid warning
when build.

Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
 src/kernels/cl_internal_block_motion_estimate_intel.cl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kernels/cl_internal_block_motion_estimate_intel.cl b/src/kernels/cl_internal_block_motion_estimate_intel.cl
index e56520a..7216229 100644
--- a/src/kernels/cl_internal_block_motion_estimate_intel.cl
+++ b/src/kernels/cl_internal_block_motion_estimate_intel.cl
@@ -54,7 +54,7 @@ void block_motion_estimate_intel(accelerator_intel_t accel,
   uint src_grf4_dw1;
   uint src_grf4_dw0;
 
-  uint8 vme_result = (0, 0, 0, 0, 0, 0, 0, 0);
+  uint8 vme_result = (0);
 
   int lgid_x = get_group_id(0);
   int lgid_y = get_group_id(1);
-- 
2.1.4



More information about the Beignet mailing list