mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Added to possibility to compile unit tests at maximum warning level.
Silenced (amongst others) many conversion related warnings.
This commit is contained in:
@@ -74,6 +74,8 @@ struct ei_intersector_helper1
|
||||
bool intersectObject(const Object1 &obj) { return intersector.intersectObjectObject(obj, stored); }
|
||||
Object2 stored;
|
||||
Intersector &intersector;
|
||||
private:
|
||||
ei_intersector_helper1& operator=(const ei_intersector_helper1&);
|
||||
};
|
||||
|
||||
template<typename Volume2, typename Object2, typename Object1, typename Intersector>
|
||||
@@ -216,6 +218,8 @@ struct ei_minimizer_helper2
|
||||
Scalar minimumOnObject(const Object2 &obj) { return minimizer.minimumOnObjectObject(stored, obj); }
|
||||
Object1 stored;
|
||||
Minimizer &minimizer;
|
||||
private:
|
||||
ei_minimizer_helper2& operator=(const ei_minimizer_helper2&);
|
||||
};
|
||||
|
||||
/** Given two BVH's, runs the query on their cartesian product encapsulated by \a minimizer.
|
||||
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
children.clear();
|
||||
|
||||
objects.insert(objects.end(), begin, end);
|
||||
int n = objects.size();
|
||||
int n = static_cast<int>(objects.size());
|
||||
|
||||
if(n < 2)
|
||||
return; //if we have at most one object, we don't need any internal nodes
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
int numBoxes = boxes.size();
|
||||
int numBoxes = static_cast<int>(boxes.size());
|
||||
|
||||
int idx = index * 2;
|
||||
if(children[idx + 1] < numBoxes) { //second index is always bigger
|
||||
|
||||
Reference in New Issue
Block a user