Mod: fix several compiler warnings:

* fix -Wsometimes-uninitialized
* fix -Wunused-parameter
* fix -Wunused-variable
* fix -Winconsistent-missing-override
* fix -Wsign-compare
* fix -Wreorder-ctor
* fix -Wtautological-overlap-compare
This commit is contained in:
wmayer
2024-02-07 11:44:00 +01:00
committed by Chris Hennes
parent 5af7933462
commit df7e783513
12 changed files with 17 additions and 21 deletions

View File

@@ -1276,6 +1276,7 @@ bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVe
case STATUS_SKETCH_DragConstraint:
case STATUS_SKETCH_StartRubberBand:
case STATUS_SKETCH_UseRubberBand:
case STATUS_SELECT_Wire:
break;
}
}
@@ -3976,9 +3977,8 @@ void ViewProviderSketch::generateContextMenu()
if (isBsplineKnotOrEndPoint(obj, geoId, posId)) {
++selectedBsplineKnots;
}
if (Sketcher::PointPos::start != posId || Sketcher::PointPos::end != posId) {
++selectedEndPoints;
}
++selectedEndPoints;
}
else if (name.substr(0, 4) == "Cons") {
++selectedConstraints;