summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2018-11-02 10:36:39 -0700
committerVinson Lee <vlee@freedesktop.org>2018-11-04 21:35:13 -0800
commit670ae3af45cb676ff799f751d68999903e61605d (patch)
tree932120a304abdd9837b5ecec118a5421970f4c59
parent919d5264edbb893ce48a1f853c317e5f26c740dc (diff)
idtech: Fix format-security warning.
idtech-extension-strings.c: In function ‘check_extension_list’: idtech-extension-strings.c:131:10: warning: format not a string literal and no format arguments [-Wformat-security] application_name); ^~~~~~~~~~~~~~~~ Fixes: f787ad0b6086 ("Add tests for GL_EXTENSION_STRING vs. old idTech2 / idTech3 games") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--tests/general/idtech-extension-strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/general/idtech-extension-strings.c b/tests/general/idtech-extension-strings.c
index 194ee5e14..cecd47bde 100644
--- a/tests/general/idtech-extension-strings.c
+++ b/tests/general/idtech-extension-strings.c
@@ -128,7 +128,7 @@ check_extension_list(const char *application_name,
}
piglit_report_subtest_result(pass ? PIGLIT_PASS : PIGLIT_FAIL,
- application_name);
+ "%s", application_name);
return pass;
}