Module: Mesa
Branch: master
Commit: f1e160f89b5557f5d64455f4d2735a64a7e289bb
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1e160f89b5557f5d64455f4d2735a64a7e289bb

Author: Marek Olšák <[email protected]>
Date:   Sat Mar 12 08:48:43 2011 +0100

llvmpipe: fix warning: ‘t0’ may be used uninitialized in this function

---

 src/gallium/drivers/llvmpipe/lp_state_setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c 
b/src/gallium/drivers/llvmpipe/lp_state_setup.c
index ad751b9..9f1ec14 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_setup.c
@@ -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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to