Mesa (master): mesa: Mark default case unreachable to silence warning.

Matt Turner mattst88 at kemper.freedesktop.org
Tue Jun 17 17:18:54 UTC 2014


Module: Mesa
Branch: master
Commit: 9f4e77643328e19ef6a84fe63d0bcc56d897faa1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f4e77643328e19ef6a84fe63d0bcc56d897faa1

Author: Matt Turner <mattst88 at gmail.com>
Date:   Sat Jun 14 22:50:43 2014 -0700

mesa: Mark default case unreachable to silence warning.

Warned about 'coord' being undefined in the default case, which is
unreachable.

Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 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);




More information about the mesa-commit mailing list