diff --git a/src/Mod/Inspection/App/InspectionFeature.cpp b/src/Mod/Inspection/App/InspectionFeature.cpp index 6f4b53cdc..4aac4d76e 100644 --- a/src/Mod/Inspection/App/InspectionFeature.cpp +++ b/src/Mod/Inspection/App/InspectionFeature.cpp @@ -152,12 +152,12 @@ namespace Inspection { } protected: - void CalculateGridLength (unsigned long ulCtGrid, unsigned long ulMaxGrids) + void CalculateGridLength (unsigned long /*ulCtGrid*/, unsigned long /*ulMaxGrids*/) { // do nothing } - void CalculateGridLength (int iCtGridPerAxis) + void CalculateGridLength (int /*iCtGridPerAxis*/) { // do nothing } @@ -384,7 +384,8 @@ float InspectNominalFastMesh::getDistance(const Base::Vector3f& point) // ---------------------------------------------------------------- -InspectNominalPoints::InspectNominalPoints(const Points::PointKernel& Kernel, float offset) : _rKernel(Kernel) +InspectNominalPoints::InspectNominalPoints(const Points::PointKernel& Kernel, float /*offset*/) + : _rKernel(Kernel) { int uGridPerAxis = 50; // totally 125.000 grid elements this->_pGrid = new Points::PointsGrid (Kernel, uGridPerAxis); @@ -418,7 +419,7 @@ float InspectNominalPoints::getDistance(const Base::Vector3f& point) // ---------------------------------------------------------------- -InspectNominalShape::InspectNominalShape(const TopoDS_Shape& shape, float radius) : _rShape(shape) +InspectNominalShape::InspectNominalShape(const TopoDS_Shape& shape, float /*radius*/) : _rShape(shape) { distss = new BRepExtrema_DistShapeShape(); distss->LoadS1(_rShape); diff --git a/src/Mod/Inspection/Gui/Command.cpp b/src/Mod/Inspection/Gui/Command.cpp index dc6c09e30..de8b4d9fb 100644 --- a/src/Mod/Inspection/Gui/Command.cpp +++ b/src/Mod/Inspection/Gui/Command.cpp @@ -53,7 +53,7 @@ CmdVisualInspection::CmdVisualInspection() sWhatsThis = "Inspection_VisualInspection"; } -void CmdVisualInspection::activated(int iMsg) +void CmdVisualInspection::activated(int) { InspectionGui::VisualInspection dlg(Gui::getMainWindow()); dlg.exec(); @@ -80,7 +80,7 @@ CmdInspectElement::CmdInspectElement() sPixmap = "inspect_pipette"; } -void CmdInspectElement::activated(int iMsg) +void CmdInspectElement::activated(int) { Gui::Document* doc = Gui::Application::Instance->activeDocument(); Gui::View3DInventor* view = static_cast(doc->getActiveView()); diff --git a/src/Mod/Inspection/Gui/ViewProviderInspection.cpp b/src/Mod/Inspection/Gui/ViewProviderInspection.cpp index 8d2d3e46c..df0e5b10c 100644 --- a/src/Mod/Inspection/Gui/ViewProviderInspection.cpp +++ b/src/Mod/Inspection/Gui/ViewProviderInspection.cpp @@ -363,7 +363,7 @@ std::vector ViewProviderInspection::getDisplayModes(void) const return StrList; } -void ViewProviderInspection::OnChange(Base::Subject &rCaller,int rcReason) +void ViewProviderInspection::OnChange(Base::Subject &/*rCaller*/, int /*rcReason*/) { setActiveMode(); } @@ -452,7 +452,7 @@ void ViewProviderInspection::inspectCallback(void * ud, SoEventCallback * n) view->getWidget()->setCursor(QCursor(Qt::ArrowCursor)); view->setRedirectToSceneGraph(false); view->setRedirectToSceneGraphEnabled(false); - view->removeEventCallback(SoButtonEvent::getClassTypeId(), inspectCallback); + view->removeEventCallback(SoButtonEvent::getClassTypeId(), inspectCallback, ud); } } else if (mbe->getButton() == SoMouseButtonEvent::BUTTON1 && mbe->getState() == SoButtonEvent::UP) { diff --git a/src/Mod/Mesh/App/Mesh.cpp b/src/Mod/Mesh/App/Mesh.cpp index b8ffdd755..7e33a8020 100644 --- a/src/Mod/Mesh/App/Mesh.cpp +++ b/src/Mod/Mesh/App/Mesh.cpp @@ -255,7 +255,7 @@ MeshPoint MeshObject::getPoint(unsigned long index) const void MeshObject::getPoints(std::vector &Points, std::vector &Normals, - float Accuracy, uint16_t flags) const + float /*Accuracy*/, uint16_t /*flags*/) const { Base::Matrix4D mat = _Mtrx;