gallivm: init vars to silence warnings
authorBrian Paul <brianp@vmware.com>
Mon, 25 Mar 2013 16:23:42 +0000 (10:23 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 25 Mar 2013 18:24:11 +0000 (12:24 -0600)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_fs.c

index b87e1a44152f32d57960b1ef073e95844ccc3b89..de51f39f159a9720f02058bf85340aad1f5f366b 100644 (file)
@@ -1219,7 +1219,7 @@ convert_to_blend_type(struct gallivm_state *gallivm,
 
    for (i = 0; i < num_srcs; ++i) {
       LLVMValueRef chans[4];
-      LLVMValueRef res;
+      LLVMValueRef res = NULL;
       unsigned sa = 0;
 
       dst[i] = LLVMBuildZExt(builder, src[i], lp_build_vec_type(gallivm, src_type), "");
@@ -1368,7 +1368,7 @@ convert_from_blend_type(struct gallivm_state *gallivm,
 
    for (i = 0; i < num_srcs; ++i) {
       LLVMValueRef chans[4];
-      LLVMValueRef res;
+      LLVMValueRef res = NULL;
       unsigned sa = 0;
 
       dst[i] = LLVMBuildBitCast(builder, src[i], lp_build_vec_type(gallivm, src_type), "");