aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-10-17 16:07:26 -0400
committerMarek Olšák <[email protected]>2019-10-17 16:07:26 -0400
commit12d92714e95fce95c6882b95045c0897ad17c438 (patch)
treec77d4d1717ae8dd67d79affdc8568e38cc91a6cb
parent3ed1dd3d429c92729845bd694e6527595b00aeb2 (diff)
st/mesa: silence a warning in st_nir_lower_tex_src_plane
trivial
-rw-r--r--src/mesa/state_tracker/st_nir_lower_tex_src_plane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_nir_lower_tex_src_plane.c b/src/mesa/state_tracker/st_nir_lower_tex_src_plane.c
index 090e5bf87bd..44597e789a2 100644
--- a/src/mesa/state_tracker/st_nir_lower_tex_src_plane.c
+++ b/src/mesa/state_tracker/st_nir_lower_tex_src_plane.c
@@ -66,7 +66,7 @@ add_sampler(lower_tex_src_state *state, unsigned orig_binding,
find_sampler(state, orig_binding);
char *name;
- asprintf(&name, "%s:%s", orig_sampler->name, ext);
+ UNUSED int r = asprintf(&name, "%s:%s", orig_sampler->name, ext);
new_sampler = nir_variable_create(state->shader, nir_var_uniform,
samplerExternalOES, name);
free(name);