From: Marek Olšák Date: Thu, 17 Oct 2019 20:07:26 +0000 (-0400) Subject: st/mesa: silence a warning in st_nir_lower_tex_src_plane X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12d92714e95fce95c6882b95045c0897ad17c438;p=mesa.git st/mesa: silence a warning in st_nir_lower_tex_src_plane trivial --- 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);