llvmpipe: fix warning: ‘t0’ may be used uninitialized in this function
authorMarek Olšák <maraeo@gmail.com>
Sat, 12 Mar 2011 07:48:43 +0000 (08:48 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 12 Mar 2011 07:48:43 +0000 (08:48 +0100)
src/gallium/drivers/llvmpipe/lp_state_setup.c

index ad751b9ef42f1e78f13dc54593dee3f05cffaff3..9f1ec146e9d7468cde0f8d146bc3bbb48b28f62f 100644 (file)
@@ -651,7 +651,7 @@ generate_setup_variant(struct gallivm_state *gallivm,
    LLVMTypeRef arg_types[7];
    LLVMBasicBlockRef block;
    LLVMBuilderRef builder = gallivm->builder;
-   int64_t t0, t1;
+   int64_t t0 = 0, t1;
 
    if (0)
       goto fail;