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:
Sven van Haastregt
2024-02-27 18:59:39 +01:00
committed by GitHub
parent 0052af2227
commit e0a31a03fc
7 changed files with 25 additions and 11 deletions

View File

@@ -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 +=