summaryrefslogtreecommitdiff
path: root/utests/compiler_program_global.cpp
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2017-01-24 16:47:57 +0800
committerYang Rong <rong.r.yang@intel.com>2017-02-10 14:22:03 +0800
commit85b948d174d404d5a3af097b8b216442f3e2931b (patch)
tree1277d7838acec18e03834ab035ae71d47ae9d79f /utests/compiler_program_global.cpp
parent9cdb314ec2d4b9239ae7c4c64c0c352425ef821b (diff)
downloadbeignet-85b948d174d404d5a3af097b8b216442f3e2931b.tar.gz
Utest: Fix an unused waring in 2.0 utest
cpu_src has no use. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/compiler_program_global.cpp')
-rw-r--r--utests/compiler_program_global.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utests/compiler_program_global.cpp b/utests/compiler_program_global.cpp
index ef7c655b..a583c60a 100644
--- a/utests/compiler_program_global.cpp
+++ b/utests/compiler_program_global.cpp
@@ -22,7 +22,6 @@ static int init_program(const char* name, cl_context ctx, cl_program *pg )
void compiler_program_global()
{
const int n = 16;
- int cpu_src[16];
cl_int err;
// Setup kernel and buffers
@@ -50,7 +49,7 @@ void compiler_program_global()
OCL_MAP_BUFFER(0);
for (int i = 0; i < n; ++i)
- cpu_src[i] = ((int*)buf_data[0])[i] = i;
+ ((int*)buf_data[0])[i] = i;
OCL_UNMAP_BUFFER(0);
// Run the kernel on GPU