aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorAndrii Simiklit <[email protected]>2019-10-28 14:23:55 +0200
committerEric Engestrom <[email protected]>2019-10-31 10:14:09 +0000
commite06fcbe2c870ea7bea39863b9d97796f7c1efe6a (patch)
tree64da6555b363754fbd5d5d7c7a0fc27e4e3727f5 /src/mesa/main
parent3e86d553a470c484b6a2c60bc7866759ec21fea5 (diff)
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 <[email protected]> ) Acked-by: Eric Engestrom <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Signed-off-by: Andrii Simiklit <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texcompress_etc.c2
1 files changed, 2 insertions, 0 deletions
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