[Nouveau] [PATCH] nv50/ir: (trivial) initialize pointer to silence warning

Tobias Klausmann tobias.johannes.klausmann at mni.thm.de
Fri Jul 25 08:36:55 PDT 2014


Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
index 14b6d68..7aa4728 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -2139,7 +2139,7 @@ Converter::handleINTERP(Value *dst[4])
 {
    // Check whether the input is linear. All other attributes ignored.
    Instruction *insn;
-   Value *offset = NULL, *ptr = NULL, *w;
+   Value *offset = NULL, *ptr = NULL, *w = NULL;
    bool linear;
    operation op;
    int c, mode;
-- 
1.8.4.5



More information about the Nouveau mailing list