diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2016-05-16 12:31:37 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2016-05-17 14:17:09 -0700 |
commit | 7fa32ddcbaecc6dbab3f2a3c2c1fd62f46f1f087 (patch) | |
tree | 4b674893f2847b521a98748ddba28561a7a89a9d | |
parent | 3affe698ce8f762e080532986934c7abd896e317 (diff) |
tests/cl: Fix pointer warning
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@intel.com>
Reviewed-by: Serge Martin <edb+piglit@sigluy.net>
-rw-r--r-- | tests/cl/api/create-program-with-binary.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cl/api/create-program-with-binary.c b/tests/cl/api/create-program-with-binary.c index 423833158..618f4ec29 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); |