Commit 67074bc8 authored by Vinson Lee's avatar Vinson Lee

vertex-program-two-side: Fix GCC format-security warnings.

vertex-program-two-side.c: In function ‘piglit_display’:
vertex-program-two-side.c:370:3: warning: format not a string literal and no format arguments [-Wformat-security]
   piglit_report_subtest_result(PIGLIT_SKIP, tests[3]);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vertex-program-two-side.c:371:3: warning: format not a string literal and no format arguments [-Wformat-security]
   piglit_report_subtest_result(PIGLIT_SKIP, tests[4]);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vertex-program-two-side.c:372:3: warning: format not a string literal and no format arguments [-Wformat-security]
   piglit_report_subtest_result(PIGLIT_SKIP, tests[5]);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vertex-program-two-side.c:375:3: warning: format not a string literal and no format arguments [-Wformat-security]
   piglit_report_subtest_result(PIGLIT_SKIP, tests[1]);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vertex-program-two-side.c:376:3: warning: format not a string literal and no format arguments [-Wformat-security]
   piglit_report_subtest_result(PIGLIT_SKIP, tests[2]);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vertex-program-two-side.c:377:3: warning: format not a string literal and no format arguments [-Wformat-security]
   piglit_report_subtest_result(PIGLIT_SKIP, tests[3]);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vertex-program-two-side.c:378:3: warning: format not a string literal and no format arguments [-Wformat-security]
   piglit_report_subtest_result(PIGLIT_SKIP, tests[4]);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vertex-program-two-side.c:379:3: warning: format not a string literal and no format arguments [-Wformat-security]
   piglit_report_subtest_result(PIGLIT_SKIP, tests[5]);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: 09b3a817 ("ARB_tessellation_shader: test gl_*Color built-ins with tessellation shaders")
Signed-off-by: Vinson Lee's avatarVinson Lee <vlee@freedesktop.org>
Reviewed-by: Timothy Arceri's avatarTimothy Arceri <tarceri@itsqueeze.com>
parent 62391faf
......@@ -367,16 +367,16 @@ piglit_display(void)
free(tcs_source);
free(tes_source);
} else {
piglit_report_subtest_result(PIGLIT_SKIP, tests[3]);
piglit_report_subtest_result(PIGLIT_SKIP, tests[4]);
piglit_report_subtest_result(PIGLIT_SKIP, tests[5]);
piglit_report_subtest_result(PIGLIT_SKIP, "%s", tests[3]);
piglit_report_subtest_result(PIGLIT_SKIP, "%s", tests[4]);
piglit_report_subtest_result(PIGLIT_SKIP, "%s", tests[5]);
}
} else {
piglit_report_subtest_result(PIGLIT_SKIP, tests[1]);
piglit_report_subtest_result(PIGLIT_SKIP, tests[2]);
piglit_report_subtest_result(PIGLIT_SKIP, tests[3]);
piglit_report_subtest_result(PIGLIT_SKIP, tests[4]);
piglit_report_subtest_result(PIGLIT_SKIP, tests[5]);
piglit_report_subtest_result(PIGLIT_SKIP, "%s", tests[1]);
piglit_report_subtest_result(PIGLIT_SKIP, "%s", tests[2]);
piglit_report_subtest_result(PIGLIT_SKIP, "%s", tests[3]);
piglit_report_subtest_result(PIGLIT_SKIP, "%s", tests[4]);
piglit_report_subtest_result(PIGLIT_SKIP, "%s", tests[5]);
}
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment