From aa3ec8bc465f8c82cb38e0ed067dbdd9122dbd44 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 19 Jun 2015 23:24:17 +0800 Subject: [PATCH] ilo: fix a -Wmaybe-uninitialized warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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] --- src/gallium/drivers/ilo/ilo_shader.c | 1 + 1 file changed, 1 insertion(+) 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 && -- 2.30.2