Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: src/core/SkNx.h

Issue 2139333002: remove unused parameter to make android happy (when this header is moved to private) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkNx.h
diff --git a/src/core/SkNx.h b/src/core/SkNx.h
index d0c7f41f1cd1b4b3b8a7e64b4b8fc9a4c6d43408..374a0fc57c54edaaddc14f4baffe652e8cbae14b 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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698