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

@@ -762,7 +762,9 @@ bool compare_results( const TestResult& lhs, const TestResult& rhs, float ulps )
{
if( ! lhs.kernelArgs().getArg(i)->compare( *rhs.kernelArgs().getArg(i), ulps ) )
{
log_error("the kernel parameter (%d) is different between SPIR and CL version of the kernel\n", i);
log_error("the kernel parameter (%zu) is different between SPIR "
"and CL version of the kernel\n",
i);
return false;
}
}