diff options
author | Chia-I Wu <[email protected]> | 2015-06-19 23:24:17 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-06-20 11:13:20 +0800 |
commit | aa3ec8bc465f8c82cb38e0ed067dbdd9122dbd44 (patch) | |
tree | cf3949e19b55235aacb7b91585ba3b2bb2c68810 /src/gallium/drivers/ilo | |
parent | a1f84453a2f104a92f9efd353c629177e00e4b5e (diff) |
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]
Diffstat (limited to 'src/gallium/drivers/ilo')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_shader.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 && |