Mesa (master): main: fix several 'may be used uninitialized' warnings
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Oct 31 10:41:05 UTC 2019
Module: Mesa
Branch: master
Commit: e06fcbe2c870ea7bea39863b9d97796f7c1efe6a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e06fcbe2c870ea7bea39863b9d97796f7c1efe6a
Author: Andrii Simiklit <andrii.simiklit at globallogic.com>
Date: Mon Oct 28 14:23:55 2019 +0200
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 <eric.engestrom at intel.com> )
Acked-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Signed-off-by: Andrii Simiklit <andrii.simiklit at globallogic.com>
---
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
More information about the mesa-commit
mailing list