Fix various compiler warnings:

* fix -Wunused-parameter
* fix -Wunused-function
* fix -Wunused-private-field
* fix -Wunused-variable
* fix -Winconsistent-missing-override
This commit is contained in:
wmayer
2024-04-30 16:59:31 +02:00
parent 9e4def7104
commit 56f84c8042
14 changed files with 16 additions and 20 deletions

View File

@@ -1803,6 +1803,7 @@ TEST_F(TopoShapeExpansionTest, makeElementThickSolid)
std::vector<TopoShape> shapes = {subFaces[0], subFaces[1]};
// Act
TopoShape& result = cube1TS.makeElementThickSolid(cube1TS, shapes, 0.1, 1e-07);
(void)result;
auto elements = elementMap(cube1TS);
// Assert
EXPECT_EQ(cube1TS.countSubElements("Wire"), 16);

View File

@@ -312,11 +312,11 @@ TEST_F(TopoShapeMakeShapeWithElementMapTests, findMakerOpInElementMap)
EXPECT_EQ(tmpShape.getElementMapSize(), 26);
// For all the mappedElements ...
for (const auto& mappedElement : tmpShape.getElementMap()) {
// TODO: This no longer works, it needs a different check. We don't set MAK
// EXPECT_NE(mappedElement.name.find(OpCodes::Maker),
// -1); // ... we check that there's the "MAK" OpCode
}
// for (const auto& mappedElement : tmpShape.getElementMap()) {
// TODO: This no longer works, it needs a different check. We don't set MAK
// EXPECT_NE(mappedElement.name.find(OpCodes::Maker),
// -1); // ... we check that there's the "MAK" OpCode
//}
}
}