From f257ef2bbbdf30313b5ce3dda9ff14344cdfc915 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 22 Jul 2019 15:58:58 -0400 Subject: [PATCH] =?utf8?q?gallivm:=20fix=20warning:=20=E2=80=98op=E2=80=99?= =?utf8?q?=20may=20be=20used=20uninitialized?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Dave Airlie --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c index a50b2acbf9f..7f569ac397c 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c @@ -3585,6 +3585,9 @@ atomic_emit( case TGSI_OPCODE_ATOMIMAX: op = LLVMAtomicRMWBinOpMax; break; + default: + assert(0); + return; } if (0) { -- 2.30.2