Re: [Mesa-dev] [PATCH] glsl: Fix 'control reaches end of non-void function' warning.

2012-01-17 Thread Kenneth Graunke
On 01/16/2012 09:10 PM, Vinson Lee wrote: 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 Signed-off-by: Vinson Lee --- src/glsl/glsl_types.cp

Re: [Mesa-dev] [PATCH] glsl: Fix 'control reaches end of non-void function' warning.

2012-01-17 Thread Chad Versace
On 01/16/2012 09:10 PM, Vinson Lee wrote: > 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 > > Signed-off-by: Vinson Lee > --- > src/glsl

[Mesa-dev] [PATCH] glsl: Fix 'control reaches end of non-void function' warning.

2012-01-16 Thread Vinson Lee
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 Signed-off-by: Vinson Lee --- src/glsl/glsl_types.cpp |4 ++-- 1 files changed, 2 insertions