summaryrefslogtreecommitdiff
path: root/tests/general
diff options
context:
space:
mode:
Diffstat (limited to 'tests/general')
-rw-r--r--tests/general/clipflat.c2
-rw-r--r--tests/general/object-namespace-pollution.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/general/clipflat.c b/tests/general/clipflat.c
index 4a4f06a65..bff7f0f1f 100644
--- a/tests/general/clipflat.c
+++ b/tests/general/clipflat.c
@@ -354,7 +354,7 @@ calcQuadrant(GLfloat x, GLfloat y)
assert(0);
}
- asprintf(&ret, "%s %s", strx, stry);
+ (void)!asprintf(&ret, "%s %s", strx, stry);
return ret;
}
diff --git a/tests/general/object-namespace-pollution.c b/tests/general/object-namespace-pollution.c
index cbf49cfde..1c7501443 100644
--- a/tests/general/object-namespace-pollution.c
+++ b/tests/general/object-namespace-pollution.c
@@ -402,7 +402,7 @@ generate_program_source(GLenum target, unsigned key)
;
}
- asprintf(&source,
+ (void)!asprintf(&source,
"!!ARBvp1.0\n"
"# Program key 0x%04x\n"
"ATTRIB vp = vertex.position;\n"
@@ -451,7 +451,7 @@ generate_program_source(GLenum target, unsigned key)
half_dir = "state.light[0].half";
}
- asprintf(&source,
+ (void)!asprintf(&source,
"!!ARBfp1.0\n"
"# Program key 0x%04x\n"
"ATTRIB n = fragment.texcoord[0];\n"