forked from bartvdbraak/blender
Libmv: Fix some strict compiler warnings
One of them was a real bug!
This commit is contained in:
parent
56c9c1ab43
commit
c183f0c94e
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user