summaryrefslogtreecommitdiff
path: root/tests/util/piglit-framework-gl.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-04-21 13:12:17 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-05-09 16:25:29 +0200
commit03284538b628e8c312313ec006ada90518c1c192 (patch)
tree20f04605d464369acc36189eb43b3d850766605e /tests/util/piglit-framework-gl.c
parentb4191ccae328224a5fe7a9b228f7c389a18edd17 (diff)
Fix asprintf warnings
Diffstat (limited to 'tests/util/piglit-framework-gl.c')
-rw-r--r--tests/util/piglit-framework-gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/util/piglit-framework-gl.c b/tests/util/piglit-framework-gl.c
index 1973dbcef..9748ddf03 100644
--- a/tests/util/piglit-framework-gl.c
+++ b/tests/util/piglit-framework-gl.c
@@ -245,7 +245,7 @@ piglit_present_results(void)
base_format, GL_UNSIGNED_BYTE, image);
assert(glGetError() == GL_NO_ERROR);
- asprintf(&filename, "%s%03d.png", fileprefix, frame++);
+ (void)!asprintf(&filename, "%s%03d.png", fileprefix, frame++);
printf("Writing %s...\n", filename);
piglit_write_png(filename, base_format, piglit_width,