diff options
author | Vinson Lee <vlee@freedesktop.org> | 2016-05-10 17:45:39 -0700 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2016-05-10 23:06:56 -0700 |
commit | 7c1ebda85b8f50b7d967038c8b81c189e4389d47 (patch) | |
tree | e8f3ec143c45bceff0f1a3c0327679efc7e2fb58 | |
parent | 4e3e4d01a62a6e0a0722d936e4a63d4e5a185873 (diff) |
arb_query_buffer_object: Fix format-security warning.
qbo.c: In function ‘run_subtest_and_present’:
qbo.c:269:2: warning: format not a string literal and no format arguments [-Wformat-security]
piglit_report_subtest_result(r, subtest_name);
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
-rw-r--r-- | tests/spec/arb_query_buffer_object/qbo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/spec/arb_query_buffer_object/qbo.c b/tests/spec/arb_query_buffer_object/qbo.c index bd47dd2a3..1bcbe1035 100644 --- a/tests/spec/arb_query_buffer_object/qbo.c +++ b/tests/spec/arb_query_buffer_object/qbo.c @@ -266,7 +266,7 @@ run_subtest_and_present(void) asprintf(&subtest_name, "query-%s-%s", piglit_get_gl_enum_name(query_type), sync_mode_names[sync_mode]); - piglit_report_subtest_result(r, subtest_name); + piglit_report_subtest_result(r, "%s", subtest_name); free(subtest_name); return r; } |