diff options
author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-07 16:47:43 +0000 |
---|---|---|
committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-07 16:47:43 +0000 |
commit | 05af1afd429808913683da75644e48bece12e820 (patch) | |
tree | b7f0ec33f2cbbb9312deb9e0e566c8bea4a97320 /gm/blurrect.cpp | |
parent | 30454293fd4fae81238c582c18232692bff32b1e (diff) |
eliminate all warnings in non-thirdparty code on mac
Most of these issues were due to functions whose definitions appear in header files; I changed those functions to be 'static inline' instead of just 'static' or 'inline', which kills the warning for such functions.
Other functions that were static or anonymous-namespaced but were unused in cpp files were probably called at some point but are no longer; someone who knows more than I do should probably scrub all the functions I either deleted or #if 0'ed out and make sure that the right thing is happening here.
Lots of unused variables removed, and one nasty const issue handled.
There remains a single warning in thirdparty/externals/cityhash/src/city.cc on line 146 related to a signed/unsigned mismatch. I don't know if we have control over this library so I didn't fix this one, but perhaps someone could do something about that one.
BUG=
Review URL: https://codereview.appspot.com/7067044
git-svn-id: http://skia.googlecode.com/svn/trunk@7051 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/blurrect.cpp')
-rw-r--r-- | gm/blurrect.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gm/blurrect.cpp b/gm/blurrect.cpp index ae2e5ea019..a7598fe2d3 100644 --- a/gm/blurrect.cpp +++ b/gm/blurrect.cpp @@ -19,13 +19,6 @@ static void fill_rect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { canvas->drawRect(r, p); } -static void stroke_rect(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { - SkPaint paint(p); - paint.setStyle(SkPaint::kStroke_Style); - paint.setStrokeWidth(STROKE_WIDTH); - canvas->drawRect(r, paint); -} - static void draw_donut(SkCanvas* canvas, const SkRect& r, const SkPaint& p) { SkRect rect; SkPath path; @@ -64,14 +57,6 @@ static void draw_donut_skewed(SkCanvas* canvas, const SkRect& r, const SkPaint& typedef void (*PaintProc)(SkPaint*, SkScalar width); -static void setgrad(SkPaint* paint, SkScalar width) { - SkPoint pts[] = { { 0, 0 }, { width, 0 } }; - SkColor colors[] = { SK_ColorRED, SK_ColorGREEN }; - SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, - SkShader::kClamp_TileMode); - paint->setShader(s)->unref(); -} - static const char* gBlurStyle2Name[] = { "normal", "solid", |