From: Andrii Simiklit Date: Mon, 28 Oct 2019 12:23:55 +0000 (+0200) Subject: main: fix several 'may be used uninitialized' warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e06fcbe2c870ea7bea39863b9d97796f7c1efe6a;p=mesa.git 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 --- 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