diff --git a/patches/warn_SkMatrix.patch b/patches/warn_SkMatrix.patch index 1c4bfd0..fce507a 100644 --- a/patches/warn_SkMatrix.patch +++ b/patches/warn_SkMatrix.patch @@ -5,9 +5,9 @@ index 03140760d6..ec7cd35923 100644 @@ -86,7 +86,7 @@ public: return m; } - static SkMatrix SK_WARN_UNUSED_RESULT Translate(SkVector t) { return Translate(t.x(), t.y()); } -- static SkMatrix SK_WARN_UNUSED_RESULT Translate(SkIVector t) { return Translate(t.x(), t.y()); } -+ static SkMatrix SK_WARN_UNUSED_RESULT Translate(SkIVector t) { return Translate((SkScalar) t.x(), (SkScalar) t.y()); } + [[nodiscard]] static SkMatrix Translate(SkVector t) { return Translate(t.x(), t.y()); } +- [[nodiscard]] static SkMatrix Translate(SkIVector t) { return Translate(t.x(), t.y()); } ++ [[nodiscard]] static SkMatrix Translate(SkIVector t) { return Translate((SkScalar) t.x(), (SkScalar) t.y()); } /** Sets SkMatrix to rotate by |deg| about a pivot point at (0, 0).