diff options
Diffstat (limited to 'tests/spec/glsl-1.50/execution/geometry')
8 files changed, 9 insertions, 9 deletions
diff --git a/tests/spec/glsl-1.50/execution/geometry/end-primitive.c b/tests/spec/glsl-1.50/execution/geometry/end-primitive.c index 97d83758f..b54e7c744 100644 --- a/tests/spec/glsl-1.50/execution/geometry/end-primitive.c +++ b/tests/spec/glsl-1.50/execution/geometry/end-primitive.c @@ -250,7 +250,7 @@ piglit_init(int argc, char **argv) vs_test_text); gs_test_main = piglit_compile_shader_text(GL_GEOMETRY_SHADER, gs_test_text); - asprintf(&text, gs_layout_template, num_vertices); + (void)!asprintf(&text, gs_layout_template, num_vertices); gs_layout = piglit_compile_shader_text(GL_GEOMETRY_SHADER, text); free(text); fs_main = piglit_compile_shader_text(GL_FRAGMENT_SHADER, fs_text); diff --git a/tests/spec/glsl-1.50/execution/geometry/gs-input-layout-qualifiers.c b/tests/spec/glsl-1.50/execution/geometry/gs-input-layout-qualifiers.c index a5e5f903a..290f85fae 100644 --- a/tests/spec/glsl-1.50/execution/geometry/gs-input-layout-qualifiers.c +++ b/tests/spec/glsl-1.50/execution/geometry/gs-input-layout-qualifiers.c @@ -98,7 +98,7 @@ piglit_init(int argc, char **argv) } } - asprintf(&gstext, gstemplate, layout); + (void)!asprintf(&gstext, gstemplate, layout); gs = glCreateShader(GL_GEOMETRY_SHADER); glShaderSource(gs, 1, (const GLchar **) &gstext, NULL); glCompileShader(gs); diff --git a/tests/spec/glsl-1.50/execution/geometry/gs-mismatch-prim-type.c b/tests/spec/glsl-1.50/execution/geometry/gs-mismatch-prim-type.c index 09ad6f047..f7aed151d 100644 --- a/tests/spec/glsl-1.50/execution/geometry/gs-mismatch-prim-type.c +++ b/tests/spec/glsl-1.50/execution/geometry/gs-mismatch-prim-type.c @@ -142,7 +142,7 @@ piglit_init(int argc, char **argv) prog = glCreateProgram(); vs = piglit_compile_shader_text(GL_VERTEX_SHADER, vstext); - asprintf(&gstext, gstemplate, layout); + (void)!asprintf(&gstext, gstemplate, layout); gs = piglit_compile_shader_text(GL_GEOMETRY_SHADER, gstext); fs = piglit_compile_shader_text(GL_FRAGMENT_SHADER, fstext); glAttachShader(prog, vs); diff --git a/tests/spec/glsl-1.50/execution/geometry/gs-output-layout-qualifiers.c b/tests/spec/glsl-1.50/execution/geometry/gs-output-layout-qualifiers.c index 4f6d5b199..fc9c0e6bc 100644 --- a/tests/spec/glsl-1.50/execution/geometry/gs-output-layout-qualifiers.c +++ b/tests/spec/glsl-1.50/execution/geometry/gs-output-layout-qualifiers.c @@ -95,7 +95,7 @@ piglit_init(int argc, char **argv) } } - asprintf(&gstext, gstemplate, layout); + (void)!asprintf(&gstext, gstemplate, layout); gs = glCreateShader(GL_GEOMETRY_SHADER); glShaderSource(gs, 1, (const GLchar **) &gstext, NULL); glCompileShader(gs); diff --git a/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c b/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c index 362b48ca9..790fdb722 100644 --- a/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c +++ b/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c @@ -185,7 +185,7 @@ piglit_init(int argc, char **argv) prog = glCreateProgram(); vs = piglit_compile_shader_text(GL_VERTEX_SHADER, vs_text); glAttachShader(prog, vs); - asprintf(&gs_text, gs_template, input_layout); + (void)!asprintf(&gs_text, gs_template, input_layout); gs = piglit_compile_shader_text(GL_GEOMETRY_SHADER, gs_text); free(gs_text); glAttachShader(prog, gs); diff --git a/tests/spec/glsl-1.50/execution/geometry/primitive-types.c b/tests/spec/glsl-1.50/execution/geometry/primitive-types.c index a44f7075d..13441d28e 100644 --- a/tests/spec/glsl-1.50/execution/geometry/primitive-types.c +++ b/tests/spec/glsl-1.50/execution/geometry/primitive-types.c @@ -396,7 +396,7 @@ piglit_init(int argc, char **argv) prog = glCreateProgram(); vs = piglit_compile_shader_text(GL_VERTEX_SHADER, vs_text); glAttachShader(prog, vs); - asprintf(&gs_text, gs_template, test->input_layout, + (void)!asprintf(&gs_text, gs_template, test->input_layout, test->vertices_per_prim); gs = piglit_compile_shader_text(GL_GEOMETRY_SHADER, gs_text); free(gs_text); diff --git a/tests/spec/glsl-1.50/execution/geometry/transform-feedback-builtins.c b/tests/spec/glsl-1.50/execution/geometry/transform-feedback-builtins.c index 969bd92f4..6f780929b 100644 --- a/tests/spec/glsl-1.50/execution/geometry/transform-feedback-builtins.c +++ b/tests/spec/glsl-1.50/execution/geometry/transform-feedback-builtins.c @@ -89,12 +89,12 @@ piglit_init(int argc, char **argv) num_xfb_buffers = ARRAY_SIZE(xfb_buf); if (test_gl_ViewportIndex) { - asprintf(&gstext, gs_template, + (void)!asprintf(&gstext, gs_template, "#extension GL_ARB_viewport_array : require\n", " gl_ViewportIndex = i + 1;\n"); } else { printf("Skip testing 'gl_ViewportIndex'\n"); - asprintf(&gstext, gs_template, "", ""); + (void)!asprintf(&gstext, gs_template, "", ""); num_xfb_buffers -= 1; } diff --git a/tests/spec/glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c b/tests/spec/glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c index 3229f1a7b..64d78b946 100644 --- a/tests/spec/glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c +++ b/tests/spec/glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c @@ -206,7 +206,7 @@ piglit_init(int argc, char **argv) prog = glCreateProgram(); vs = piglit_compile_shader_text(GL_VERTEX_SHADER, vs_text); glAttachShader(prog, vs); - asprintf(&gs_text, gs_template, test->input_layout, + (void)!asprintf(&gs_text, gs_template, test->input_layout, test->vertices_per_prim); gs = piglit_compile_shader_text(GL_GEOMETRY_SHADER, gs_text); free(gs_text); |