From c87dd2ce965cd1bbc8a74abe0c141658a469d7f2 Mon Sep 17 00:00:00 2001 From: djsollen Date: Fri, 14 Nov 2014 11:11:46 -0800 Subject: Enable unused param checking for public includes. This CL cleans up the existing violations and enables the build time check to ensure that we don't regress. The motiviation behind this change is to allow clients who include our headers to be able to build with this warning enabled. Review URL: https://codereview.chromium.org/726923002 --- include/effects/SkGradientShader.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/effects') diff --git a/include/effects/SkGradientShader.h b/include/effects/SkGradientShader.h index 8d1a93107d..2d2fefe5cf 100644 --- a/include/effects/SkGradientShader.h +++ b/include/effects/SkGradientShader.h @@ -58,7 +58,7 @@ public: #ifdef SK_SUPPORT_LEGACY_GRADIENT_FACTORIES static SkShader* CreateLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, - SkShader::TileMode mode, void* ignored, + SkShader::TileMode mode, void* /*ignored*/, uint32_t flags, const SkMatrix* localMatrix) { return CreateLinear(pts, colors, pos, count, mode, flags, localMatrix); } @@ -94,7 +94,7 @@ public: #ifdef SK_SUPPORT_LEGACY_GRADIENT_FACTORIES static SkShader* CreateRadial(const SkPoint& center, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, - SkShader::TileMode mode, void* ignored, + SkShader::TileMode mode, void* /*ignored*/, uint32_t flags, const SkMatrix* localMatrix) { return CreateRadial(center, radius, colors, pos, count, mode, flags, localMatrix); } @@ -137,7 +137,7 @@ public: static SkShader* CreateTwoPointRadial(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, - SkShader::TileMode mode, void* ignored, + SkShader::TileMode mode, void* /*ignored*/, uint32_t flags, const SkMatrix* localMatrix) { return CreateTwoPointRadial(start, startRadius, end, endRadius, colors, pos, count, mode, flags, localMatrix); @@ -168,7 +168,7 @@ public: static SkShader* CreateTwoPointConical(const SkPoint& start, SkScalar startRadius, const SkPoint& end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, - SkShader::TileMode mode, void* ignored, + SkShader::TileMode mode, void* /*ignored*/, uint32_t flags, const SkMatrix* localMatrix) { return CreateTwoPointConical(start, startRadius, end, endRadius, colors, pos, count, mode, flags, localMatrix); @@ -202,7 +202,7 @@ public: #ifdef SK_SUPPORT_LEGACY_GRADIENT_FACTORIES static SkShader* CreateSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int count, - void* ignored, + void* /*ignored*/, uint32_t flags, const SkMatrix* localMatrix) { return CreateSweep(cx, cy, colors, pos, count, flags, localMatrix); } -- cgit v1.2.3