fix warnings
This commit is contained in:
@@ -454,7 +454,7 @@ bool GeomCurve::closestParameter(const Base::Vector3d& point, double &u) const
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch (StdFail_NotDone& e) { // projection does not exist on trimmer curve, let's try basis curve
|
||||
catch (StdFail_NotDone&) { // projection does not exist on trimmer curve, let's try basis curve
|
||||
closestParameterToBasicCurve(point,u);
|
||||
|
||||
if(abs(u-c->FirstParameter()) < abs(u-c->LastParameter()))
|
||||
@@ -465,7 +465,6 @@ bool GeomCurve::closestParameter(const Base::Vector3d& point, double &u) const
|
||||
return true;
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
|
||||
throw Base::RuntimeError(e.GetMessageString());
|
||||
}
|
||||
|
||||
|
||||
@@ -337,7 +337,7 @@ void SketchAnalysis::analyseMissingPointOnPointCoincident(double angleprecision)
|
||||
}
|
||||
|
||||
}
|
||||
catch(Base::Exception &e) {
|
||||
catch(Base::Exception &) {
|
||||
Base::Console().Warning("Point-On-Point Coincidence analysis: unable to obtain derivative. Detection ignored.\n");
|
||||
continue;
|
||||
}
|
||||
@@ -782,8 +782,7 @@ int SketchAnalysis::autoconstraint(double precision, double angleprecision, bool
|
||||
try {
|
||||
makeMissingEquality();
|
||||
}
|
||||
catch(Base::RuntimeError &e)
|
||||
{
|
||||
catch(Base::RuntimeError &) {
|
||||
doc->abortTransaction();
|
||||
throw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user