From e06fcbe2c870ea7bea39863b9d97796f7c1efe6a Mon Sep 17 00:00:00 2001 From: Andrii Simiklit Date: Mon, 28 Oct 2019 14:23:55 +0200 Subject: [PATCH] main: fix several 'may be used uninitialized' warnings This patch fixes approximately 39 warnings in 'texcompress_etc.c' for the release configuration v2: Fixed by adding the unreachable case to the etc2_rgb8_fetch_texel ( Eric Engestrom ) Acked-by: Eric Engestrom Reviewed-by: Timothy Arceri Signed-off-by: Andrii Simiklit --- src/mesa/main/texcompress_etc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/texcompress_etc.c b/src/mesa/main/texcompress_etc.c index b39ab33d36f..32464f3ca9e 100644 --- a/src/mesa/main/texcompress_etc.c +++ b/src/mesa/main/texcompress_etc.c @@ -548,6 +548,8 @@ etc2_rgb8_fetch_texel(const struct etc2_block *block, if (punchthrough_alpha) dst[3] = 255; } + else + unreachable("unhandled block mode"); } static void -- 2.30.2