From a7f261dc137d702f3617670baae7bb0263a9db62 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 8 Aug 2018 18:02:59 +0200 Subject: [PATCH] fix warnings --- src/Mod/Part/App/Geometry.cpp | 3 +-- src/Mod/Sketcher/App/SketchAnalysis.cpp | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index ac4a9560ba..321278206d 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -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()); } diff --git a/src/Mod/Sketcher/App/SketchAnalysis.cpp b/src/Mod/Sketcher/App/SketchAnalysis.cpp index 8e922a1225..79f4929541 100644 --- a/src/Mod/Sketcher/App/SketchAnalysis.cpp +++ b/src/Mod/Sketcher/App/SketchAnalysis.cpp @@ -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; }