[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:
Sven van Haastregt
2022-09-13 14:48:54 +01:00
committed by GitHub
parent 1d74c85ff3
commit 5d5bffba13
4 changed files with 36 additions and 32 deletions

View File

@@ -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;