In Mac OS X 10.9 and Xcode 5.1, it is a warning "Declaration shadows a local variable" in a new ios/mac project.

This commit is contained in:
Xiaosong Gao 2014-04-11 08:07:18 +08:00
parent 8e2bd0d2ee
commit d82c4bed75
1 changed files with 2 additions and 2 deletions

View File

@ -241,9 +241,9 @@ ClosestPointsNew(const struct MinkowskiPoint v0, const struct MinkowskiPoint v1)
return points;
} else {
cpFloat d2 = cpvlength(p);
cpVect n = cpvmult(p, 1.0f/(d2 + CPFLOAT_MIN));
cpVect n2 = cpvmult(p, 1.0f/(d2 + CPFLOAT_MIN));
struct ClosestPoints points = {pa, pb, n, d2, id};
struct ClosestPoints points = {pa, pb, n2, d2, id};
return points;
}
}