Tobias Klausmann
2014-Jul-25 15:36 UTC
[Nouveau] [PATCH] nv50/ir: (trivial) initialize pointer to silence warning
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
Ilia Mirkin
2014-Jul-25 16:58 UTC
[Nouveau] [PATCH] nv50/ir: (trivial) initialize pointer to silence warning
What warning with what compiler? Pretty sure this builds cleanly for me. On Jul 25, 2014 11:37 AM, "Tobias Klausmann" < tobias.johannes.klausmann at mni.thm.de> wrote:> > 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.cppb/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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20140725/644bb71f/attachment.html>
Apparently Analagous Threads
- [PATCH] nv50/ir: make ARB_viewport_array behave like it does with other drivers
- [PATCH v3] nv50/ir: make ARB_viewport_array behave like it does with other drivers
- [PATCH v2] nv50/ir: make ARB_viewport_array behave like it does with other drivers
- [PATCH] nouveau/codegen: dump tgsi floats as hex values
- [PATCH] nouveau/codegen: dump tgsi floats as hex values