[Mesa-dev] [PATCH] nv50/ir: fix compilation warning in handleSharedATOM()

Ilia Mirkin imirkin at alum.mit.edu
Sat Mar 19 15:58:04 UTC 2016


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Sat, Mar 19, 2016 at 11:56 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> In release build mode only, op may be used uninitialized because
> the assertion has been removed.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
> index 01364b3..1c56d16 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
> @@ -1098,6 +1098,7 @@ NVC0LoweringPass::handleSharedATOM(Instruction *atom)
>           break;
>        default:
>           assert(0);
> +         return;
>        }
>
>        Instruction *i =
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list