glsl: Silence a warning at -Og
authorAdam Jackson <ajax@redhat.com>
Tue, 26 Jan 2021 19:11:04 +0000 (14:11 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Feb 2021 20:59:43 +0000 (20:59 +0000)
commitb882857d288debc327486894e20eeb47edf9241d
tree73534fa0c78beef16ffc0cc7a97b14bcb842fdfa
parent89acceda60efd52c126bf91babd83974a515ce83
glsl: Silence a warning at -Og

   ../src/compiler/glsl/gl_nir_link_uniforms.c:1786:50: warning: ‘blocks’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    1786 |             const struct gl_uniform_block *const block =

Just do nothing if we somehow fail to initialize blocks.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8724>
src/compiler/glsl/gl_nir_link_uniforms.c