Fix initialization of variables; eliminates warnings on Linux.
git-svn-id: http://skia.googlecode.com/svn/trunk@1990 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
5c210c7a2f
commit
221db3c336
@ -27,10 +27,10 @@ static void TestGeometry(skiatest::Reporter* reporter) {
|
||||
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]));
|
||||
|
@ -18,6 +18,7 @@ static void check_close(skiatest::Reporter* reporter, const SkPath& path) {
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user