FreeCAD: Compiler warning fixes

This commit is contained in:
Chris Hennes
2025-03-12 23:16:43 -05:00
committed by Kacper Donat
parent afe23a432c
commit 64d658e38a
15 changed files with 32 additions and 24 deletions

View File

@@ -1485,7 +1485,7 @@ void readResults(std::ifstream& ifstr,
std::vector<double> scaValues;
std::vector<int> nodes;
int countNodes = 0;
int countScaPos;
size_t countScaPos;
// result block could have both vector/matrix and scalar components
// save each scalars entity in his own array
auto scalarPos = identifyScalarEntities(entityTypes);
@@ -1542,7 +1542,7 @@ void readResults(std::ifstream& ifstr,
}
}
}
catch (const std::out_of_range& ex) {
catch (const std::out_of_range&) {
Base::Console().Warning("Invalid node: %d\n", node);
}
++countNodes;