From 5f63747c2ecf4a7ee065cd3bce053eb48d845e66 Mon Sep 17 00:00:00 2001 From: Stuart Brady Date: Thu, 3 Sep 2020 14:36:38 +0100 Subject: [PATCH] Remove empty statements due to use of double semicolons (#935) Signed-off-by: Stuart Brady --- test_common/harness/clImageHelper.h | 4 ++-- test_common/harness/typeWrappers.cpp | 6 ++++-- .../integer_ops/verification_and_generation_functions.cpp | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/test_common/harness/clImageHelper.h b/test_common/harness/clImageHelper.h index dfa05ca6..83f7b277 100644 --- a/test_common/harness/clImageHelper.h +++ b/test_common/harness/clImageHelper.h @@ -42,7 +42,7 @@ #ifdef CL_VERSION_1_2 cl_image_desc image_desc_dest; - image_desc_dest.image_type = CL_MEM_OBJECT_IMAGE2D;; + image_desc_dest.image_type = CL_MEM_OBJECT_IMAGE2D; image_desc_dest.image_width = image_width; image_desc_dest.image_height = image_height; image_desc_dest.image_depth= 0;// not usedfor 2d @@ -86,7 +86,7 @@ cl_mem mImage = NULL; cl_image_desc image_desc_dest; - image_desc_dest.image_type = CL_MEM_OBJECT_IMAGE2D;; + image_desc_dest.image_type = CL_MEM_OBJECT_IMAGE2D; image_desc_dest.image_width = image_width; image_desc_dest.image_height = image_height; image_desc_dest.image_depth= 0;// not usedfor 2d diff --git a/test_common/harness/typeWrappers.cpp b/test_common/harness/typeWrappers.cpp index d4e08fb9..c2fa5f64 100644 --- a/test_common/harness/typeWrappers.cpp +++ b/test_common/harness/typeWrappers.cpp @@ -390,7 +390,8 @@ cl_int clProtectedImage::Create( cl_context context, cl_mem_object_type imageTyp image = create_image_2d( context, mem_flags, fmt, width, height, 0, NULL, &error ); break; case CL_MEM_OBJECT_IMAGE3D: - image = create_image_3d( context, mem_flags, fmt, width, height, depth, 0, 0, NULL, &error );; + image = create_image_3d(context, mem_flags, fmt, width, height, + depth, 0, 0, NULL, &error); break; case CL_MEM_OBJECT_IMAGE1D_ARRAY: image = create_image_1d_array( context, mem_flags, fmt, width, arraySize, 0, 0, NULL, &error ); @@ -413,7 +414,8 @@ cl_int clProtectedImage::Create( cl_context context, cl_mem_object_type imageTyp image = create_image_2d( context, mem_flags, fmt, width, height, 0, NULL, &error ); break; case CL_MEM_OBJECT_IMAGE3D: - image = create_image_3d( context, mem_flags, fmt, width, height, depth, 0, 0, NULL, &error );; + image = create_image_3d(context, mem_flags, fmt, width, height, + depth, 0, 0, NULL, &error); break; case CL_MEM_OBJECT_IMAGE1D_ARRAY: image = create_image_1d_array( context, mem_flags, fmt, width, arraySize, 0, 0, NULL, &error ); diff --git a/test_conformance/integer_ops/verification_and_generation_functions.cpp b/test_conformance/integer_ops/verification_and_generation_functions.cpp index 23f3bdb5..25fbe717 100644 --- a/test_conformance/integer_ops/verification_and_generation_functions.cpp +++ b/test_conformance/integer_ops/verification_and_generation_functions.cpp @@ -1481,8 +1481,8 @@ int verify_uchar(int test, size_t vector_size, cl_uchar *inptrA, cl_uchar *inptrB, cl_uchar *outptr, size_t n) { cl_uchar r; - cl_uint shift_mask = vector_size == 1 ? (cl_uint)(sizeof(cl_uint)*8)-1 - : (cl_uint)(sizeof(cl_uchar)*8)-1;; + cl_uint shift_mask = vector_size == 1 ? (cl_uint)(sizeof(cl_uint) * 8) - 1 + : (cl_uint)(sizeof(cl_uchar) * 8) - 1; size_t i, j; int count=0;