Mesa (master): i965: Shut up spurious gcc warning about GLSL_TYPE enums.

Eric Anholt anholt at kemper.freedesktop.org
Wed Nov 17 17:20:04 PST 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Nov 17 15:06:22 2010 +0800

i965: Shut up spurious gcc warning about GLSL_TYPE enums.

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 9c03b61..4ef7178 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -299,6 +299,10 @@ fs_visitor::setup_uniform_values(int loc, const glsl_type *type)
 	 case GLSL_TYPE_BOOL:
 	    c->prog_data.param_convert[param] = PARAM_CONVERT_F2B;
 	    break;
+	 default:
+	    assert(!"not reached");
+	    c->prog_data.param_convert[param] = PARAM_NO_CONVERT;
+	    break;
 	 }
 
 	 c->prog_data.param[param] = &vec_values[i];



More information about the mesa-commit mailing list