From: Samuel Pitoiset Date: Sat, 19 Mar 2016 15:52:45 +0000 (+0100) Subject: nv50/ir: fix compilation warning in handleSharedATOM() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e05492fd7f0e1a9454482a9174f5870b8cb5a41e;p=mesa.git nv50/ir: fix compilation warning in handleSharedATOM() In release build mode only, op may be used uninitialized because the assertion has been removed. Signed-off-by: Samuel Pitoiset Reviewed-by: Ilia Mirkin --- 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 01364b3b7e6..1c56d16abc8 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 =