Reviewed-by: Ian Romanick <[email protected]>

On 02/19/2014 12:46 AM, Vinson Lee wrote:
> This patch fixes this GCC return-type warning.
> 
> ttexswizzle.cpp: In member function 'GLubyte 
> GLEAN::TexSwizzleTest::Swizzle(const GLubyte*, GLenum)':
> ttexswizzle.cpp:119:1: warning: control reaches end of non-void function 
> [-Wreturn-type]
>  }
>  ^
> 
> Signed-off-by: Vinson Lee <[email protected]>
> ---
>  tests/glean/ttexswizzle.cpp | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/glean/ttexswizzle.cpp b/tests/glean/ttexswizzle.cpp
> index 667dda2..abbb93b 100644
> --- a/tests/glean/ttexswizzle.cpp
> +++ b/tests/glean/ttexswizzle.cpp
> @@ -115,6 +115,7 @@ TexSwizzleTest::Swizzle(const GLubyte *texColor, GLenum 
> swizzle)
>               return 0;
>       default:
>               assert(0);
> +             return 0;
>       }
>  }
>  
> 

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to