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

Vinson Lee vlee at freedesktop.org
Tue Jun 14 18:56:12 UTC 2016


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"
-- 
2.7.4



More information about the Piglit mailing list