diff options
author | Vinson Lee <vlee@freedesktop.org> | 2013-12-23 16:54:06 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2014-01-07 11:56:09 -0800 |
commit | c040920d62d557a669fa540d9a455fadc55009bb (patch) | |
tree | 06408c6f3ebc2548cc41d712e4cf5ea7deb8d82c /tests/fbo | |
parent | d2160169cd5e3a29feeae1f08ba88e6cd05e7553 (diff) |
fbo-incomplete: Fix GCC format-security warnings.
This patch fixes these GCC warnings.
fbo-incomplete.cpp: In function ‘bool invalid_1d_array_layer()’:
fbo-incomplete.cpp:304:57: warning: format not a string literal and no format arguments [-Wformat-security]
fbo-incomplete.cpp: In function ‘bool invalid_2d_array_layer()’:
fbo-incomplete.cpp:331:57: warning: format not a string literal and no format arguments [-Wformat-security]
fbo-incomplete.cpp: In function ‘bool invalid_cube_array_layer()’:
fbo-incomplete.cpp:358:57: warning: format not a string literal and no format arguments [-Wformat-security]
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'tests/fbo')
-rw-r--r-- | tests/fbo/fbo-incomplete.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fbo/fbo-incomplete.cpp b/tests/fbo/fbo-incomplete.cpp index 292139c15..498a4a4ae 100644 --- a/tests/fbo/fbo-incomplete.cpp +++ b/tests/fbo/fbo-incomplete.cpp @@ -301,7 +301,7 @@ invalid_1d_array_layer(void) if (!piglit_is_extension_supported("GL_EXT_texture_array") && piglit_get_gl_version() < 30) { - piglit_report_subtest_result(PIGLIT_SKIP, subtest_name); + piglit_report_subtest_result(PIGLIT_SKIP, "%s", subtest_name); return true; } @@ -328,7 +328,7 @@ invalid_2d_array_layer(void) if (!piglit_is_extension_supported("GL_EXT_texture_array") && piglit_get_gl_version() < 30) { - piglit_report_subtest_result(PIGLIT_SKIP, subtest_name); + piglit_report_subtest_result(PIGLIT_SKIP, "%s", subtest_name); return true; } @@ -355,7 +355,7 @@ invalid_cube_array_layer(void) if (!piglit_is_extension_supported("GL_ARB_texture_cube_map_array") && piglit_get_gl_version() < 40) { - piglit_report_subtest_result(PIGLIT_SKIP, subtest_name); + piglit_report_subtest_result(PIGLIT_SKIP, "%s", subtest_name); return true; } |