[Piglit] [PATCH] glean/texswizzle: Fix GCC return-type warning.

Ian Romanick idr at freedesktop.org
Wed Feb 19 19:51:17 PST 2014


Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

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 <vlee at freedesktop.org>
> ---
>  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;
>  	}
>  }
>  
> 



More information about the Piglit mailing list