[Piglit] [PATCH v3 1/2] tests/cl: Fix pointer warning
Serge Martin
edb+piglit at sigluy.net
Tue May 17 20:14:13 UTC 2016
On Tuesday 17 May 2016 13:10:51 Dylan Baker wrote:
> clCreatProgramWithBinary expects a "const unsigned char **", but the code
> passes an "unsighed char **". This is a particular kind of messiness
> that is hard to fix, so just cast when passing into
> clCreateProgramWithBinary.
>
> Thanks to idr and Matt for help getting this right.
>
> Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
Reviewed-by: Serge Martin <edb+piglit at sigluy.net>
> ---
> tests/cl/api/create-program-with-binary.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/cl/api/create-program-with-binary.c
> b/tests/cl/api/create-program-with-binary.c index 4873b76..2a7894e 100644
> --- a/tests/cl/api/create-program-with-binary.c
> +++ b/tests/cl/api/create-program-with-binary.c
> @@ -119,7 +119,8 @@ static cl_program create_binary_program(const
> piglit_cl_context ctx)
>
> binary_program = clCreateProgramWithBinary (cl_ctx, ctx->num_devices,
> ctx->device_ids,
> - sizes, binaries,
> + sizes,
> + (const unsigned char **) binaries,
> NULL,
> &errNo);
More information about the Piglit
mailing list