[Mesa-dev] [PATCH 04/13] mesa: Mark default case unreachable to silence warning.
Matt Turner
mattst88 at gmail.com
Sun Jun 15 10:16:56 PDT 2014
Warned about 'coord' being undefined in the default case, which is
unreachable.
---
src/mesa/drivers/common/meta.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index cab0dd8..dc9cce5 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -2614,6 +2614,7 @@ _mesa_meta_setup_texture_coords(GLenum faceTarget,
break;
default:
assert(0);
+ unreachable();
}
coord[3] = (float) (slice / 6);
--
1.8.3.2
More information about the mesa-dev
mailing list