llvmpipe: Initialize variable for potentially unhandled switch case.
authorVinson Lee <vlee@vmware.com>
Tue, 14 Sep 2010 07:17:13 +0000 (00:17 -0700)
committerVinson Lee <vlee@vmware.com>
Tue, 14 Sep 2010 07:17:13 +0000 (00:17 -0700)
src/gallium/drivers/llvmpipe/lp_state_fs.c

index 6053e825e17f39cee5cdb0f756c1c547b287ed27..8101e2d843dff7233fb491991801855a00f3e776 100644 (file)
@@ -212,6 +212,9 @@ generate_quad_mask(LLVMBuilderRef builder,
    case 3:
       shift = 10;
       break;
+   default:
+      assert(0);
+      shift = 0;
    }
 
    mask_input = LLVMBuildLShr(builder,