[Beignet] [PATCH] Runtime: avoid clang warning "warning: expression result unused".
Pan, Xiuli
xiuli.pan at intel.com
Thu Oct 20 07:34:16 UTC 2016
LGTM.
Thanks
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Yang Rong
Sent: Wednesday, August 31, 2016 7:28 PM
To: beignet at lists.freedesktop.org
Cc: Yang, Rong R <rong.r.yang at intel.com>
Subject: [Beignet] [PATCH] Runtime: avoid clang warning "warning: expression result unused".
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
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list