diff options
author | Brian Paul <brianp@vmware.com> | 2013-09-27 10:45:30 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2013-10-08 09:28:42 -0600 |
commit | 064d588991073f0fbd72aa204e8ed621dc055c55 (patch) | |
tree | 12535a0724ec9b311c7ca734fc2184bf0e9f012f /tests/spec/arb_texture_storage_multisample | |
parent | c634685dcdcf090b1cd8315d7116a39d5ae15ede (diff) |
piglit: silence piglit_report_subtest_result() format warnings
silences a bunch of warnings such as:
"tests/fbo/fbo-alphatest-formats.c:184:3: warning: format not
a string literal and no format arguments [-Wformat-security]"
Diffstat (limited to 'tests/spec/arb_texture_storage_multisample')
-rw-r--r-- | tests/spec/arb_texture_storage_multisample/tex-param.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/spec/arb_texture_storage_multisample/tex-param.c b/tests/spec/arb_texture_storage_multisample/tex-param.c index 11e7d7815..55864f5d3 100644 --- a/tests/spec/arb_texture_storage_multisample/tex-param.c +++ b/tests/spec/arb_texture_storage_multisample/tex-param.c @@ -83,7 +83,7 @@ check_subtest(struct subtest *t) if (!piglit_check_gl_error(GL_NO_ERROR)) { printf("GetTexParameteriv failed\n"); - piglit_report_subtest_result(PIGLIT_FAIL, test_name); + piglit_report_subtest_result(PIGLIT_FAIL, "%s", test_name); return; } @@ -92,7 +92,7 @@ check_subtest(struct subtest *t) piglit_get_gl_enum_name(t->param), t->initial_value, val); - piglit_report_subtest_result(PIGLIT_FAIL, test_name); + piglit_report_subtest_result(PIGLIT_FAIL, "%s", test_name); return; } @@ -101,7 +101,7 @@ check_subtest(struct subtest *t) if (!piglit_check_gl_error(t->expected_error)) { printf("error setting parameter %s\n", piglit_get_gl_enum_name(t->param)); - piglit_report_subtest_result(PIGLIT_FAIL, test_name); + piglit_report_subtest_result(PIGLIT_FAIL, "%s", test_name); return; } @@ -114,10 +114,10 @@ check_subtest(struct subtest *t) piglit_get_gl_enum_name(t->param), expected_val, val); - piglit_report_subtest_result(PIGLIT_FAIL, test_name); + piglit_report_subtest_result(PIGLIT_FAIL, "%s", test_name); } - piglit_report_subtest_result(PIGLIT_PASS, test_name); + piglit_report_subtest_result(PIGLIT_PASS, "%s", test_name); } void |