From: Marek Olšák Date: Mon, 22 Jul 2019 19:59:49 +0000 (-0400) Subject: radeonsi: fix warning: ‘ret’ may be used uninitialized X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb9eb1834d8fee07d15c407829923d8b074c89ec;p=mesa.git radeonsi: fix warning: ‘ret’ may be used uninitialized Reviewed-by: Dave Airlie --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 6fd7a56dbcd..679fa4edabd 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -6771,7 +6771,7 @@ static void si_build_wrapper_function(struct si_shader_context *ctx, initial_num_out_sgpr = num_out_sgpr; /* Now chain the parts. */ - LLVMValueRef ret; + LLVMValueRef ret = NULL; for (unsigned part = 0; part < num_parts; ++part) { LLVMValueRef in[48]; LLVMTypeRef ret_type;