projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ac5adc
)
mesa: Mark default case unreachable to silence warning.
author
Matt Turner
<mattst88@gmail.com>
Sun, 15 Jun 2014 05:50:43 +0000
(22:50 -0700)
committer
Matt 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/common/meta.c
b/src/mesa/drivers/common/meta.c
index cab0dd8e0b78d50ebecd75c9324ce1ded1e7a492..dc9cce5cf233447d5c8e48903ba6c785b59a38a4 100644
(file)
--- 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);