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-Tag: upstream/19.3.0~3883 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb9eb1834d8fee07d15c407829923d8b074c89ec;p=platform%2Fupstream%2Fmesa.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 6fd7a56..679fa4e 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;