From f7fae7f64e126d0a92bc1f5f875164f77232364d Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 7 Nov 2018 13:34:29 +0100 Subject: [PATCH] gm107/ir: fix compile time warning in getTEXSMask In function 'uint8_t nv50_ir::getTEXSMask(uint8_t)': warning: control reaches end of non-void function [-Wreturn-type] Reported-by: Moiman@freenode Fixes: f821e80213e38e93f96255b3deacb737a600ed40 "gm107/ir: use scalar tex instructions where possible" Signed-off-by: Karol Herbst Reviewed-by: Ilia Mirkin --- src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp index 241061ab837..be00db31315 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp @@ -2738,6 +2738,7 @@ getTEXSMask(uint8_t mask) case 0xf: return 0x4; default: assert(!"invalid mask"); + return 0; } } -- 2.30.2