mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix compilation issues for conforming_version.cpp (#1113)
Previously this file used the auto keyword to declare a string. This can cause compilation issues when used in a later function. Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
int test_conformance_version(cl_device_id deviceID, cl_context context,
|
||||
cl_command_queue ignoreQueue, int num_elements)
|
||||
{
|
||||
auto version_string{ get_device_info_string(
|
||||
std::string version_string{ get_device_info_string(
|
||||
deviceID, CL_DEVICE_LATEST_CONFORMANCE_VERSION_PASSED) };
|
||||
|
||||
// Latest conformance version passed should match vYYYY-MM-DD-XX, where XX
|
||||
@@ -34,4 +34,4 @@ int test_conformance_version(cl_device_id deviceID, cl_context context,
|
||||
"valid format vYYYY-MM-DD-XX");
|
||||
|
||||
return TEST_PASS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user