[Piglit] [PATCH] cl-custom-buffer-flags: Remove unused label.

Tom Stellard tom at stellard.net
Tue Jan 28 06:40:04 PST 2014


On Mon, Jan 27, 2014 at 08:11:00PM -0800, Vinson Lee wrote:
> This patch fixes this GCC unused-label warning.
> 
> buffer-flags.c: In function ‘piglit_cl_test’:
> buffer-flags.c:222:1: warning: label ‘out’ defined but not used [-Wunused-label]
>  out:
>  ^
> 
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
> ---
>  tests/cl/custom/buffer-flags.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tests/cl/custom/buffer-flags.c b/tests/cl/custom/buffer-flags.c
> index 321d75f..6bf988f 100644
> --- a/tests/cl/custom/buffer-flags.c
> +++ b/tests/cl/custom/buffer-flags.c
> @@ -219,7 +219,6 @@ piglit_cl_test(const int argc,
>  			piglit_merge_result(&ret, part_ret);
>  		}
>  
> -out:
>  	clReleaseProgram(program);
>  	piglit_cl_release_context(context);
>  	return ret;
> -- 
> 1.8.3.2
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list