Fix initialization of variables; eliminates warnings on Linux.
git-svn-id: http://skia.googlecode.com/svn/trunk@1990 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/GeometryTest.cpp b/tests/GeometryTest.cpp
index 803bacd..6158a20 100644
--- a/tests/GeometryTest.cpp
+++ b/tests/GeometryTest.cpp
@@ -27,10 +27,10 @@
pts[2].set(SkIntToScalar(3), SkIntToScalar(3));
SkConvertQuadToCubic(pts, dst);
const SkPoint cubic[] = {
- 0, 0,
- SkIntToScalar(2), 0,
- SkIntToScalar(3), SkIntToScalar(1),
- SkIntToScalar(3), SkIntToScalar(3)
+ { 0, 0, },
+ { SkIntToScalar(2), 0, },
+ { SkIntToScalar(3), SkIntToScalar(1), },
+ { SkIntToScalar(3), SkIntToScalar(3) },
};
for (int i = 0; i < 4; ++i) {
REPORTER_ASSERT(reporter, nearly_equal(cubic[i], dst[i]));
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index 3086159..e7b061b 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -18,6 +18,7 @@
SkPath::Verb v;
int nMT = 0;
int nCL = 0;
+ mv.set(0, 0);
while (SkPath::kDone_Verb != (v = iter.next(pts))) {
switch (v) {
case SkPath::kMove_Verb: