[Mesa-dev] [PATCH 2/2] mesa: Silence unused variable warning

Gurkirpal Singh gurkirpal204 at gmail.com
Tue Jun 28 20:01:03 UTC 2016


Signed-off-by: Gurkirpal Singh <gurkirpal204 at gmail.com>
---
 src/mesa/state_tracker/st_glsl_to_nir.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
index a880564..a914c8d 100644
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
@@ -172,6 +172,7 @@ st_nir_assign_uniform_locations(struct gl_program *prog,
          bool found = shader_program->UniformHash->get(val, uniform->name);
          loc = shaderidx++;
          assert(found);
+         (void) found;
          /* this ensure that nir_lower_samplers looks at the correct
           * shader_program->UniformStorage[location]:
           */
-- 
2.7.4



More information about the mesa-dev mailing list