From aeb83928fdc09d9310df0f94aaddf87d9635dc7e Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 14 Sep 2010 00:17:13 -0700 Subject: llvmpipe: Initialize variable for potentially unhandled switch case. --- src/gallium/drivers/llvmpipe/lp_state_fs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/llvmpipe') 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, -- cgit v1.2.3