From: Chia-I Wu Date: Fri, 19 Jun 2015 15:24:17 +0000 (+0800) Subject: ilo: fix a -Wmaybe-uninitialized warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa3ec8bc465f8c82cb38e0ed067dbdd9122dbd44;p=mesa.git ilo: fix a -Wmaybe-uninitialized warning ilo_shader.c: In function ‘ilo_shader_select_kernel_sbe’: ilo_shader.c:1140:27: warning: ‘src_skip’ may be used uninitialized in this function [-Wmaybe-uninitialized] --- diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c index 93a26268a29..5f2b01017e2 100644 --- a/src/gallium/drivers/ilo/ilo_shader.c +++ b/src/gallium/drivers/ilo/ilo_shader.c @@ -1089,6 +1089,7 @@ ilo_shader_select_kernel_sbe(struct ilo_shader_state *shader, src_semantics = source->shader->out.semantic_names; src_indices = source->shader->out.semantic_indices; src_len = source->shader->out.count; + src_skip = 0; assert(src_len >= 2 && src_semantics[0] == TGSI_SEMANTIC_PSIZE &&