[Piglit] [PATCH] arb_vertex_attrib_64bit: Silence Coverity unchecked return value defect.

Andres Gomez agomez at igalia.com
Tue Jun 14 20:34:28 UTC 2016


This is:

Reviewed-by: Andres Gomez <agomez at igalia.com>

On Tue, 2016-06-14 at 18:56 +0000, Vinson Lee wrote:
> CID: 1362568
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  tests/spec/arb_vertex_attrib_64bit/execution/overlapping-locations.c 
> | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git
> a/tests/spec/arb_vertex_attrib_64bit/execution/overlapping-
> locations.c
> b/tests/spec/arb_vertex_attrib_64bit/execution/overlapping-
> locations.c
> index 13ee171dbd2a..05936f3dee90 100644
> --- a/tests/spec/arb_vertex_attrib_64bit/execution/overlapping-
> locations.c
> +++ b/tests/spec/arb_vertex_attrib_64bit/execution/overlapping-
> locations.c
> @@ -106,7 +106,7 @@ compile_shader(void)
>  		"}\n";
>  
>  	char *vert;
> -	asprintf(&vert, vert_template, locations_in_shader ?
> +	(void)!asprintf(&vert, vert_template, locations_in_shader ?
>  		 "#extension GL_ARB_explicit_attrib_location :
> require\n"
>  		 "#extension GL_ARB_gpu_shader_fp64 : require\n"
>  		 "#extension GL_ARB_vertex_attrib_64bit : require\n"
-- 
Br,

Andres




More information about the Piglit mailing list