Libmv: Fix some strict compiler warnings

One of them was a real bug!
This commit is contained in:
Sergey Sharybin 2016-07-14 11:49:38 +02:00
parent 56c9c1ab43
commit c183f0c94e
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ inline void Project(const Mat34 &P, const Vec3 &X, Vec3 *x) {
inline void Project(const Mat34 &P, const Vec3 &X, Vec2 *x) {
Vec3 hx;
Project(P, X, x);
Project(P, X, &hx);
*x = hx.head<2>() / hx(2);
}

View File

@ -148,7 +148,7 @@ using Eigen::Matrix;
// A = U * diag(s) * VT
//
template <typename TMat, typename TVec>
inline void SVD(TMat *A, Vec *s, Mat *U, Mat *VT) {
inline void SVD(TMat * /*A*/, Vec * /*s*/, Mat * /*U*/, Mat * /*VT*/) {
assert(0);
}