st/mesa: silence a warning in st_nir_lower_tex_src_plane
authorMarek Olšák <marek.olsak@amd.com>
Thu, 17 Oct 2019 20:07:26 +0000 (16:07 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 17 Oct 2019 20:07:26 +0000 (16:07 -0400)
trivial

src/mesa/state_tracker/st_nir_lower_tex_src_plane.c

index 090e5bf87bdd9434d7e0917f9aac3c7ead90b42a..44597e789a2853e83c9eea452d654fd79060c19e 100644 (file)
@@ -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);