Fix compiler warnings

This commit is contained in:
wmayer
2024-12-04 12:19:38 +01:00
committed by Chris Hennes
parent 8501d431fd
commit d2250d1f56
2 changed files with 4 additions and 3 deletions

View File

@@ -3492,7 +3492,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point)
return arePointsWithinPrecision(point, pp);
};
#if 0
// Checks whether preexisting constraints must be converted to new constraints.
// Preexisting point on object constraints get converted to coincidents, unless an end-to-end
// tangency is more relevant. returns by reference:
@@ -3510,7 +3510,7 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point)
* also make sure that the PointOnObject constraint is deleted. The below loop ensures this,
* also in case the ordering of the constraints is first Tangent and then PointOnObject. */
};
#endif
// makes an equality constraint between GeoId1 and GeoId2
auto constrainAsEqual = [this](int GeoId1, int GeoId2) {
auto newConstr = std::make_unique<Sketcher::Constraint>();
@@ -3595,7 +3595,6 @@ int SketchObject::trim(int GeoId, const Base::Vector3d& point)
std::vector<int> newIds;
std::vector<Part::Geometry*> newGeos;
std::vector<const Part::Geometry*> newGeosAsConsts;
bool oldGeoIsConstruction = GeometryFacade::getConstruction(geoAsCurve);
if (isClosedCurve(geo)) {
startPointRemains = false;

View File

@@ -363,6 +363,8 @@ public:
template<class geomType>
static Base::Vector3d getPointForGeometry(const geomType* geo, PointPos PosId)
{
(void)geo;
(void)PosId;
return Base::Vector3d();
}