diff --git a/src/Mod/Sketcher/Gui/Command.cpp b/src/Mod/Sketcher/Gui/Command.cpp index 082e69ad46..28af78476f 100644 --- a/src/Mod/Sketcher/Gui/Command.cpp +++ b/src/Mod/Sketcher/Gui/Command.cpp @@ -1614,7 +1614,7 @@ void RenderingOrderAction::updateWidget() int midid = hGrp->GetInt("MidRenderGeometryId", 2); int lowid = hGrp->GetInt("LowRenderGeometryId", 3); - auto idToText = [this](int id) -> QString { + auto idToText = [](int id) -> QString { switch (id) { case 1: return tr("Normal geometry"); diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index c5bc4a4c4b..07bbb108bd 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -1034,8 +1034,9 @@ public: Gui::Selection().rmvSelectionGate(); } - void mouseMove(SnapManager::SnapHandle snapHandle) override - {} + void mouseMove(SnapManager::SnapHandle /*snapHandle*/) override + { + } bool pressButton(Base::Vector2d /*onSketchPos*/) override { diff --git a/src/Mod/Sketcher/Gui/DrawSketchHandlerOffset.h b/src/Mod/Sketcher/Gui/DrawSketchHandlerOffset.h index 546903c1d4..90bf54fc9d 100644 --- a/src/Mod/Sketcher/Gui/DrawSketchHandlerOffset.h +++ b/src/Mod/Sketcher/Gui/DrawSketchHandlerOffset.h @@ -298,7 +298,7 @@ private: return line; } - Part::Geometry* curveToCircleOrArc(BRepAdaptor_Curve curve, const TopoDS_Edge& edge) + Part::Geometry* curveToCircleOrArc(BRepAdaptor_Curve curve, const TopoDS_Edge& /*edge*/) { gp_Circ circle = curve.Circle(); gp_Pnt cnt = circle.Location(); @@ -330,7 +330,7 @@ private: } } - Part::Geometry* curveToEllipseOrArc(BRepAdaptor_Curve curve, const TopoDS_Edge& edge) + Part::Geometry* curveToEllipseOrArc(BRepAdaptor_Curve curve, const TopoDS_Edge& /*edge*/) { gp_Elips ellipse = curve.Ellipse(); gp_Pnt beg = curve.Value(curve.FirstParameter()); diff --git a/src/Mod/Sketcher/Gui/EditModeCoinManager.cpp b/src/Mod/Sketcher/Gui/EditModeCoinManager.cpp index 56a7cf5ef9..1f190b24f2 100644 --- a/src/Mod/Sketcher/Gui/EditModeCoinManager.cpp +++ b/src/Mod/Sketcher/Gui/EditModeCoinManager.cpp @@ -121,11 +121,9 @@ void EditModeCoinManager::ParameterObserver::initParameters() [this](const std::string& param) { updateConstraintPresentationParameters(param); }}, {"DimensionalStringFormat", [this](const std::string& param) { updateConstraintPresentationParameters(param); }}, - {"ViewScalingFactor", - [this](const std::string& param) { Client.updateElementSizeParameters(); }}, - {"MarkerSize", [this](const std::string& param) { Client.updateElementSizeParameters(); }}, - {"EditSketcherFontSize", - [this](const std::string& param) { Client.updateElementSizeParameters(); }}, + {"ViewScalingFactor", [this](const std::string&) { Client.updateElementSizeParameters(); }}, + {"MarkerSize", [this](const std::string&) { Client.updateElementSizeParameters(); }}, + {"EditSketcherFontSize", [this](const std::string&) { Client.updateElementSizeParameters(); }}, {"EdgeWidth", [this, &drawingParameters = Client.drawingParameters](const std::string& param) { updateWidth(drawingParameters.CurveWidth, param, 2);