[Piglit] [PATCH] cl-api-create-context: Remove unused variables.

Serge Martin edb+piglit at sigluy.net
Mon Oct 26 01:31:43 PDT 2015


On Thursday 22 October 2015 22:46:27 Vinson Lee wrote:
> create-context.c:141:15: warning: unused variable 'num_platform_ids'
> [-Wunused-variable] unsigned int num_platform_ids;
>                      ^
> create-context.c:139:7: warning: unused variable 'found_invalid_platform'
> [-Wunused-variable] bool found_invalid_platform = false;
>              ^
> create-context.c:140:18: warning: unused variable 'platform_ids'
> [-Wunused-variable] cl_platform_id* platform_ids;
>                         ^
> 
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>

Reviewed-by: Serge Martin <edb+piglit at sigluy.net>

> ---
>  tests/cl/api/create-context.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/tests/cl/api/create-context.c b/tests/cl/api/create-context.c
> index 551f8a2..4999bbf 100644
> --- a/tests/cl/api/create-context.c
> +++ b/tests/cl/api/create-context.c
> @@ -136,9 +136,6 @@ piglit_cl_test(const int argc,
>  	cl_device_id* devices;
>  	cl_context cl_ctx;
> 
> -	bool found_invalid_platform = false;
> -	cl_platform_id* platform_ids;
> -	unsigned int num_platform_ids;
>  	cl_platform_id invalid_platform_id = NULL;
> 
>  	//TODO: test also CL_CONTEXT_INTEROP_USER_SYNC



More information about the Piglit mailing list