summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2017-05-09 11:56:49 -0500
committerRob Clark <[email protected]>2017-05-09 14:20:54 -0400
commitdb6f38cb6a43f315f4e2aa613eae02d5a451295c (patch)
tree81b4507fda1185bbca0ab6a5b65b27f127d0149d /src
parentc42952ea90f42538505c213763bf4bd9776c2ff4 (diff)
freedreno: fix clang error in fd_get_compute_param
With commit 10c17f23b752 ("freedreno: core compute state support"), Android builds fail with the following error: external/mesa3d/src/gallium/drivers/freedreno/freedreno_screen.c:610:17: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] sprintf(ret, ir); ^~ Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index 052565dcbdc..57010d64587 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -589,7 +589,7 @@ fd_get_compute_param(struct pipe_screen *pscreen, enum pipe_shader_ir ir_type,
enum pipe_compute_cap param, void *ret)
{
struct fd_screen *screen = fd_screen(pscreen);
- const char *ir = "ir3";
+ const char * const ir = "ir3";
if (!has_compute(screen))
return 0;