From: Brian Paul Date: Thu, 13 May 2010 19:24:21 +0000 (-0600) Subject: gallivm: silence uninitialized var warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c91d9cb563baf292f04ad3eeb33837806a4fb20d;p=mesa.git gallivm: silence uninitialized var warning --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index 00628054728..8db6501c80e 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -420,7 +420,7 @@ emit_fetch( const struct tgsi_full_src_register *reg = &inst->Src[index]; unsigned swizzle = tgsi_util_get_full_src_register_swizzle( reg, chan_index ); LLVMValueRef res; - LLVMValueRef addr; + LLVMValueRef addr = NULL; switch (swizzle) { case TGSI_SWIZZLE_X: