From: Brian Paul Date: Thu, 19 Feb 2015 16:25:42 +0000 (-0700) Subject: nir: add missing GLSL_TYPE_DOUBLE case in type_size() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f5597787c83aab069e53b3c7cad8acf8c91626c;p=mesa.git nir: add missing GLSL_TYPE_DOUBLE case in type_size() To silence compiler warning about unhandled switch case. v2: move GLSL_TYPE_DOUBLE to the "not reached" section, per Ilia. Reviewed-by: Ilia Mirkin --- diff --git a/src/glsl/nir/nir_lower_io.c b/src/glsl/nir/nir_lower_io.c index ddbc249371b..207f8daa1bc 100644 --- a/src/glsl/nir/nir_lower_io.c +++ b/src/glsl/nir/nir_lower_io.c @@ -69,6 +69,7 @@ type_size(const struct glsl_type *type) return 0; case GLSL_TYPE_VOID: case GLSL_TYPE_ERROR: + case GLSL_TYPE_DOUBLE: unreachable("not reached"); }