aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-07-12 09:12:30 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-12 09:12:30 -0700
commit1264472c06cebd283d1ec123014c58f5d3c4cad1 (patch)
treef7abaf523cea2803b11b9162f221cb0bed5d41f0
parente1d2007924e7c3ec6f349c326249ba5eb9a9d70c (diff)
remove unused parameter to make android happy (when this header is moved to private)
-rw-r--r--src/core/SkNx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkNx.h b/src/core/SkNx.h
index d0c7f41f1c..374a0fc57c 100644
--- a/src/core/SkNx.h
+++ b/src/core/SkNx.h
@@ -110,7 +110,8 @@ struct SkNx<1,T> {
SkNx() = default;
SkNx(T v) : fVal(v) {}
- T operator[](int k) const {
+ // Android complains against unused parameters, so we guard it
+ T operator[](int SkDEBUGCODE(k)) const {
SkASSERT(k == 0);
return fVal;
}