diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index b80559c59e..495e047088 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -3423,8 +3423,10 @@ TopoDS_Shape TopoShape::defeaturing(const std::vector& s) const { if (this->_Shape.IsNull()) Standard_Failure::Raise("Base shape is null"); - if (OCC_VERSION_HEX < 0x070300) - throw Base::RuntimeError("Defeaturing is not supported on OCC < 7.3.0."); +#if OCC_VERSION_HEX < 0x070300 + (void)s; + throw Base::RuntimeError("Defeaturing is available only in OCC 7.3.0 and up."); +#else BRepAlgoAPI_Defeaturing defeat; defeat.SetRunParallel(true); defeat.SetShape(this->_Shape); @@ -3445,4 +3447,5 @@ TopoDS_Shape TopoShape::defeaturing(const std::vector& s) const // defeat.DumpWarnings(aSStream); // } return defeat.Shape(); +#endif }