From 2ecdedb8d4adfa9dbef053681fc89f2a2873647e Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 28 Jun 2017 17:52:27 -0400 Subject: [PATCH] etnaviv: Add unreachable statement to etna_amode to fix compilation warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Foss Reviewed-by: Tapani Pälli Reviewed-by: Emil Velikov --- src/gallium/drivers/etnaviv/etnaviv_compiler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler.c b/src/gallium/drivers/etnaviv/etnaviv_compiler.c index af0f76b5864..2e8dd8643a5 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler.c +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler.c @@ -885,6 +885,8 @@ etna_amode(struct tgsi_ind_register indirect) default: assert(!"Invalid swizzle"); } + + unreachable("bad swizzle"); } /* convert destination operand */ -- 2.30.2