From 6c76d2410a087cedca932f9646977259b2ec056c Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 7 Sep 2012 16:52:24 +0000 Subject: [PATCH] Remove extraneous const qualifier. Found by clang: [293/898] CXX obj/src/gpu/gl/gr.GrGpuGL.o ../../src/gpu/gl/GrGpuGL.cpp:2031:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] const GrGLenum tile_to_gl_wrap(SkShader::TileMode tm) { ^~~~~ Signed-off-by: Thiago Farina Review URL: https://codereview.appspot.com/6492093/ git-svn-id: http://skia.googlecode.com/svn/trunk@5437 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/GrGpuGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp index 74f9953657..887ed7650a 100644 --- a/src/gpu/gl/GrGpuGL.cpp +++ b/src/gpu/gl/GrGpuGL.cpp @@ -2028,7 +2028,7 @@ void set_tex_swizzle(GrGLenum swizzle[4], const GrGLInterface* gl) { reinterpret_cast(swizzle))); } -const GrGLenum tile_to_gl_wrap(SkShader::TileMode tm) { +inline GrGLenum tile_to_gl_wrap(SkShader::TileMode tm) { static const GrGLenum gWrapModes[] = { GR_GL_CLAMP_TO_EDGE, GR_GL_REPEAT,