Skip to content

Commit

Permalink
fixed warning unused function in UT
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogumil-Sapinski-Mobica committed Jun 23, 2023
1 parent d7d43bd commit 99ed1e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_openclhpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,7 @@ void testBufferConstructorQueueIterator(void)
clReleaseCommandQueue_ExpectAndReturn(make_command_queue(0), CL_SUCCESS);
}

#if CL_HPP_TARGET_OPENCL_VERSION >= 300
static cl_mem clCreateBufferWithProperties_testBufferWithProperties(
cl_context context,
const cl_mem_properties *properties,
Expand All @@ -1334,7 +1335,6 @@ static cl_mem clCreateBufferWithProperties_testBufferWithProperties(

void testBufferWithProperties(void)
{
#if CL_HPP_TARGET_OPENCL_VERSION >= 300
clCreateBufferWithProperties_StubWithCallback(clCreateBufferWithProperties_testBufferWithProperties);

VECTOR_CLASS<cl_mem_properties> props{11};
Expand All @@ -1346,8 +1346,8 @@ void testBufferWithProperties(void)

// prevent destructor from interfering with the test
buffer() = nullptr;
#endif
}
#endif //CL_HPP_TARGET_OPENCL_VERSION >= 300

/****************************************************************************
* Tests for cl::Image1DBuffer
Expand Down

0 comments on commit 99ed1e3

Please sign in to comment.