mesa: Mark default case unreachable to silence warning.
authorMatt Turner <mattst88@gmail.com>
Sun, 15 Jun 2014 05:50:43 +0000 (22:50 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 17 Jun 2014 17:18:14 +0000 (10:18 -0700)
Warned about 'coord' being undefined in the default case, which is
unreachable.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/common/meta.c

index cab0dd8e0b78d50ebecd75c9324ce1ded1e7a492..dc9cce5cf233447d5c8e48903ba6c785b59a38a4 100644 (file)
@@ -2614,6 +2614,7 @@ _mesa_meta_setup_texture_coords(GLenum faceTarget,
             break;
          default:
             assert(0);
+            unreachable();
          }
 
          coord[3] = (float) (slice / 6);