fix a couple of compiler warnings

This commit is contained in:
wmayer 2017-01-20 22:54:10 +01:00
parent f5c0f579cb
commit ad57478ab4
4 changed files with 5 additions and 7 deletions

View File

@ -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();

View File

@ -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)
{
}

View File

@ -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();

View File

@ -4324,8 +4324,8 @@ public:
DrawSketchHandlerBSpline(int constructionMethod)
: Mode(STATUS_SEEK_FIRST_CONTROLPOINT)
, EditCurve(2)
, ConstrMethod(constructionMethod)
, CurrentConstraint(0)
, ConstrMethod(constructionMethod)
{
std::vector<AutoConstraint> sugConstr1;
sugConstr.push_back(sugConstr1);
@ -4515,7 +4515,6 @@ protected:
int CurrentConstraint;
int ConstrMethod;
};
DEF_STD_CMD_A(CmdSketcherCreateBSpline)