Skip to content
Snippets Groups Projects
Commit 751d6dcb authored by Tom Fischer's avatar Tom Fischer
Browse files

[T] Fix clang compile warnings.

parent 297fe89d
No related branches found
No related tags found
No related merge requests found
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
TEST(GeoLib, TestBoundingSphere) TEST(GeoLib, TestBoundingSphere)
{ {
std::vector<MathLib::MathPoint*> pnts; std::vector<MathLib::MathPoint*> pnts;
pnts.push_back(new MathLib::MathPoint({0, 0 , 0})); pnts.push_back(new MathLib::MathPoint(std::array<double,3>({{0, 0 , 0}})));
pnts.push_back(new MathLib::MathPoint({2, 0 , 0})); pnts.push_back(new MathLib::MathPoint(std::array<double,3>({{2, 0 , 0}})));
pnts.push_back(new MathLib::MathPoint({1, 0.1 , 0})); pnts.push_back(new MathLib::MathPoint(std::array<double,3>({{1, 0.1 , 0}})));
pnts.push_back(new MathLib::MathPoint({1, -0.1 , 0})); pnts.push_back(new MathLib::MathPoint(std::array<double,3>({{1, -0.1 , 0}})));
{ {
/** /**
...@@ -66,10 +66,6 @@ TEST(GeoLib, TestBoundingSphere) ...@@ -66,10 +66,6 @@ TEST(GeoLib, TestBoundingSphere)
ASSERT_NEAR(1.0580, s.getRadius(), 0.0001); ASSERT_NEAR(1.0580, s.getRadius(), 0.0001);
} }
pnts.push_back(new MathLib::MathPoint({0, 0, 1}));
pnts.push_back(new MathLib::MathPoint({1, 0, 1}));
pnts.push_back(new MathLib::MathPoint({1, 1, 1}));
pnts.push_back(new MathLib::MathPoint({0, 1, 0.9}));
(*pnts[0])[0] = 0.0; (*pnts[0])[0] = 0.0;
(*pnts[0])[1] = 0.0; (*pnts[0])[1] = 0.0;
(*pnts[0])[2] = 0.0; (*pnts[0])[2] = 0.0;
...@@ -82,6 +78,10 @@ TEST(GeoLib, TestBoundingSphere) ...@@ -82,6 +78,10 @@ TEST(GeoLib, TestBoundingSphere)
(*pnts[3])[0] = 0.0; (*pnts[3])[0] = 0.0;
(*pnts[3])[1] = 1.0; (*pnts[3])[1] = 1.0;
(*pnts[3])[2] = 0.0; (*pnts[3])[2] = 0.0;
pnts.push_back(new MathLib::MathPoint(std::array<double,3>({{0, 0, 1}})));
pnts.push_back(new MathLib::MathPoint(std::array<double,3>({{1, 0, 1}})));
pnts.push_back(new MathLib::MathPoint(std::array<double,3>({{1, 1, 1}})));
pnts.push_back(new MathLib::MathPoint(std::array<double,3>({{0, 1, 0.9}})));
{ {
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment