mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-21 23: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
@@ -170,7 +170,7 @@ int test_image_format_methods(cl_device_id device, cl_context context,
|
||||
}
|
||||
|
||||
// Construct testing source
|
||||
log_info(" - Creating image %d by %d...\n", width, height);
|
||||
log_info(" - Creating image %zu by %zu...\n", width, height);
|
||||
// Create a CL image from the supplied GL texture
|
||||
image = (*clCreateFromGLTexture_ptr)(context, CL_MEM_READ_ONLY, target, 0,
|
||||
glTexture, &error);
|
||||
|
||||
Reference in New Issue
Block a user