From: Eric Anholt Date: Wed, 17 Nov 2010 07:06:22 +0000 (+0800) Subject: i965: Shut up spurious gcc warning about GLSL_TYPE enums. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d512cbf58f9039575dbbb5ab65dbbf7b742a0854;p=mesa.git i965: Shut up spurious gcc warning about GLSL_TYPE enums. --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 9c03b61c82e..4ef71784d4e 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];