[Mesa-dev] [PATCH v3 1/5] etnaviv: Add unreachable statement to etna_amode to fix compilation warnings

Robert Foss robert.foss at collabora.com
Wed Jun 28 21:52:27 UTC 2017


From: Tomeu Vizoso <tomeu.vizoso at collabora.com>

Signed-off-by: Robert Foss <robert.foss at collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
---
Chages since v2:
  - Rebased on upstream/master

Changes since v1:
  Emil Velikov <emil.l.velikov at gmail.com>
   - Replaced return with unreachable call

 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 af0f76b586..2e8dd8643a 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.11.0



More information about the mesa-dev mailing list