mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix -Wformat warnings in various tests (#1868)
All of these warnings stem from printing `size_t` types, which should be done using the `z` length modifier. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
0052af2227
commit
e0a31a03fc
@@ -1392,7 +1392,7 @@ int test_computeinfo(cl_device_id deviceID, cl_context context,
|
||||
for (size_t onDevice = 0;
|
||||
onDevice < device_infos[onInfo].num_devices; onDevice++)
|
||||
{
|
||||
log_info("%s Device %d of %d Info:\n",
|
||||
log_info("%s Device %zu of %d Info:\n",
|
||||
device_infos[onInfo].device_type_name, onDevice + 1,
|
||||
device_infos[onInfo].num_devices);
|
||||
total_errors +=
|
||||
|
||||
Reference in New Issue
Block a user