From: Vinson Lee Date: Tue, 14 Sep 2010 07:17:13 +0000 (-0700) Subject: llvmpipe: Initialize variable for potentially unhandled switch case. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aeb83928fdc09d9310df0f94aaddf87d9635dc7e;p=mesa.git llvmpipe: Initialize variable for potentially unhandled switch case. --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 6053e825e17..8101e2d843d 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -212,6 +212,9 @@ generate_quad_mask(LLVMBuilderRef builder, case 3: shift = 10; break; + default: + assert(0); + shift = 0; } mask_input = LLVMBuildLShr(builder,