Fix some GCC 7 warnings:

* dynamic exception specifications are deprecated [-Wdeprecated]
* this statement may fall through [-Wimplicit-fallthrough=]
This commit is contained in:
Mateusz Skowroński
2017-11-26 19:29:08 +01:00
committed by wmayer
parent 7812099f33
commit dee8769d0e
59 changed files with 241 additions and 236 deletions

View File

@@ -356,8 +356,9 @@ void Area::addWire(CArea &area, const TopoDS_Wire& wire,
Point(center.X(),center.Y())));
break;
}
//fall through
} default: {
}
/* FALLTHRU */
default: {
// Discretize all other type of curves
GCPnts_QuasiUniformDeflection discretizer(curve, deflection,
curve.FirstParameter(), curve.LastParameter());
@@ -3272,9 +3273,9 @@ void Area::toPath(Toolpath &path, const std::list<TopoDS_Shape> &shapes,
AREA_WARN("arc plane not aligned, force discretization");
}
AREA_TRACE("arc discretize " << AREA_XYZ(dir));
//fall through
} default: {
}
/* FALLTHRU */
default: {
// Discretize all other type of curves
GCPnts_QuasiUniformDeflection discretizer(curve, deflection,
curve.FirstParameter(), curve.LastParameter());