Skip to content

Commit

Permalink
fixed warning unused function in UT (KhronosGroup#242)
Browse files Browse the repository at this point in the history
* fixed warning unused function in UT

* fixing linking issue
  • Loading branch information
Bogumil-Sapinski-Mobica authored Jul 11, 2023
1 parent 84cdcf8 commit b8b3056
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 @@ -1331,6 +1332,7 @@ static cl_mem clCreateBufferWithProperties_testBufferWithProperties(

return make_mem(0);
}
#endif //CL_HPP_TARGET_OPENCL_VERSION >= 300

void testBufferWithProperties(void)
{
Expand All @@ -1346,7 +1348,7 @@ void testBufferWithProperties(void)

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

/****************************************************************************
Expand Down

0 comments on commit b8b3056

Please sign in to comment.