Skip to content

Commit

Permalink
fix a couple of compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 20, 2017
1 parent f5c0f57 commit ad57478
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Gui/DlgPropertyLink.cpp
Expand Up @@ -155,7 +155,7 @@ void DlgPropertyLink::on_checkObjectType_toggled(bool on)
findObjects(on);
}

void DlgPropertyLink::on_searchBox_textChanged(const QString& search)
void DlgPropertyLink::on_searchBox_textChanged(const QString& /*search*/)
{
ui->listWidget->clear();
bool on = ui->checkObjectType->isChecked();
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Sketcher/App/Constraint.cpp
Expand Up @@ -86,8 +86,8 @@ Constraint::Constraint(const Constraint& from)
LabelDistance(from.LabelDistance),
LabelPosition(from.LabelPosition),
isDriving(from.isDriving),
tag(from.tag),
InternalAlignmentIndex(from.InternalAlignmentIndex)
InternalAlignmentIndex(from.InternalAlignmentIndex),
tag(from.tag)
{
}

Expand Down
3 changes: 1 addition & 2 deletions src/Mod/Sketcher/App/planegcs/Geo.cpp
Expand Up @@ -658,9 +658,8 @@ DeriVector2 BSpline::CalculateNormal(Point& p, double* derivparam)
return ret;
}

DeriVector2 BSpline::Value(double u, double du, double* derivparam)
DeriVector2 BSpline::Value(double /*u*/, double /*du*/, double* /*derivparam*/)
{

// place holder
DeriVector2 ret = DeriVector2();

Expand Down
3 changes: 1 addition & 2 deletions src/Mod/Sketcher/Gui/CommandCreateGeo.cpp
Expand Up @@ -4324,8 +4324,8 @@ class DrawSketchHandlerBSpline: public DrawSketchHandler
DrawSketchHandlerBSpline(int constructionMethod)
: Mode(STATUS_SEEK_FIRST_CONTROLPOINT)
, EditCurve(2)
, ConstrMethod(constructionMethod)
, CurrentConstraint(0)
, ConstrMethod(constructionMethod)
{
std::vector<AutoConstraint> sugConstr1;
sugConstr.push_back(sugConstr1);
Expand Down Expand Up @@ -4515,7 +4515,6 @@ class DrawSketchHandlerBSpline: public DrawSketchHandler

int CurrentConstraint;
int ConstrMethod;

};

DEF_STD_CMD_A(CmdSketcherCreateBSpline)
Expand Down

0 comments on commit ad57478

Please sign in to comment.