Skip to content

Commit

Permalink
fix -Wextra in Inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 23, 2016
1 parent b980cf3 commit 4c1af03
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions src/Mod/Inspection/App/InspectionFeature.cpp
Expand Up @@ -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
}
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Inspection/Gui/Command.cpp
Expand Up @@ -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();
Expand All @@ -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<Gui::View3DInventor*>(doc->getActiveView());
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Inspection/Gui/ViewProviderInspection.cpp
Expand Up @@ -363,7 +363,7 @@ std::vector<std::string> ViewProviderInspection::getDisplayModes(void) const
return StrList;
}

void ViewProviderInspection::OnChange(Base::Subject<int> &rCaller,int rcReason)
void ViewProviderInspection::OnChange(Base::Subject<int> &/*rCaller*/, int /*rcReason*/)
{
setActiveMode();
}
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Mesh/App/Mesh.cpp
Expand Up @@ -255,7 +255,7 @@ MeshPoint MeshObject::getPoint(unsigned long index) const

void MeshObject::getPoints(std::vector<Base::Vector3d> &Points,
std::vector<Base::Vector3d> &Normals,
float Accuracy, uint16_t flags) const
float /*Accuracy*/, uint16_t /*flags*/) const
{
Base::Matrix4D mat = _Mtrx;

Expand Down

0 comments on commit 4c1af03

Please sign in to comment.