From 12d92714e95fce95c6882b95045c0897ad17c438 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 17 Oct 2019 16:07:26 -0400 Subject: [PATCH] st/mesa: silence a warning in st_nir_lower_tex_src_plane trivial --- src/mesa/state_tracker/st_nir_lower_tex_src_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2