glsl: Fix 'control reaches end of non-void function' warning.
authorVinson Lee <vlee@freedesktop.org>
Tue, 17 Jan 2012 02:01:22 +0000 (18:01 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sat, 21 Jan 2012 07:53:59 +0000 (23:53 -0800)
commite9bcf4d56b8ae128204fb95693c6f81a6b724052
tree0b9a2d970f573e41531615ee4c767acfccafafca
parentd6cd514edbeca0de38561f66189748078d0dc602
glsl: Fix 'control reaches end of non-void function' warning.

Fix this GCC warning on non-debug builds.
glsl_types.cpp: In member function 'gl_texture_index
glsl_type::sampler_index() const':
glsl_types.cpp:157: warning: control reaches end of non-void function

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glsl_types.cpp