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

Ilia Mirkin imirkin at alum.mit.edu
Fri Jul 25 09:58:55 PDT 2014


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.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nouveau/attachments/20140725/644bb71f/attachment.html>


More information about the Nouveau mailing list