mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 07:09:03 +00:00
[NFC] Declare format tables as const (#1493)
Without const, these variables would be flagged up by `-Wunused-variable`. Drop `struct` from the declarations as that is not needed in C++. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
1d74c85ff3
commit
5d5bffba13
@@ -660,8 +660,9 @@ static int test_image_format_write( cl_context context, cl_command_queue queue,
|
||||
// combination.
|
||||
|
||||
int test_images_write_common(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, struct format* formats, size_t nformats,
|
||||
GLenum *targets, size_t ntargets, sizevec_t* sizes, size_t nsizes )
|
||||
cl_command_queue queue, const format *formats,
|
||||
size_t nformats, GLenum *targets, size_t ntargets,
|
||||
sizevec_t *sizes, size_t nsizes)
|
||||
{
|
||||
int err = 0;
|
||||
int error = 0;
|
||||
|
||||
Reference in New Issue
Block a user