nir: fix unused variable warning in find_and_update_previous_uniform_storage
authorKai Wasserbäch <kai@dev.carbon-project.org>
Sat, 28 Sep 2019 16:55:32 +0000 (18:55 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 7 Nov 2019 00:32:55 +0000 (11:32 +1100)
commit4f8cc032b71630e3a92b3e5de875e2126cc93fab
tree0be7fb4acf59af95afd3e474918b660d405c9e85
parent8aa4d0bff65de73a712063bb8b3853919300f925
nir: fix unused variable warning in find_and_update_previous_uniform_storage

This commit fixes the following warning:
../src/compiler/glsl/gl_nir_link_uniforms.c: In function ‘find_and_update_previous_uniform_storage’:
../src/compiler/glsl/gl_nir_link_uniforms.c:166:16: warning: unused variable ‘num_blks’ [-Wunused-variable]
  166 |       unsigned num_blks = nir_variable_is_in_ubo(var) ?
      |                ^~~~~~~~

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/glsl/gl_nir_link_uniforms.c