MSVC: Fix warnings and build failure

This commit is contained in:
wmayer
2024-06-12 08:38:49 +02:00
committed by Chris Hennes
parent 238fd6a5fc
commit 636fa43c99
5 changed files with 5 additions and 4 deletions

View File

@@ -125,6 +125,7 @@
#include <GCPnts_AbscissaPoint.hxx>
#include <GProp_GProps.hxx>
#include <GeomAPI_IntCS.hxx>
#include <GeomAPI_ProjectPointOnCurve.hxx>
#include <GeomAPI_ProjectPointOnSurf.hxx>
#include <Geom_BSplineCurve.hxx>
#include <Geom_BSplineSurface.hxx>

View File

@@ -523,7 +523,7 @@ App::DocumentObjectExecReturn *Loft::execute(void)
try {
boolOp.makeElementBoolean(maker, {base,result});
}
catch(Standard_Failure &e) {
catch(Standard_Failure&) {
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Failed to perform boolean operation"));
}
boolOp = this->getSolid(boolOp);

View File

@@ -126,7 +126,7 @@ App::DocumentObjectExecReturn* FeaturePrimitive::execute(const TopoDS_Shape& pri
try {
boolOp.makeElementBoolean(maker, {base, primitiveShape});
}
catch (Standard_Failure& e) {
catch (Standard_Failure&) {
return new App::DocumentObjectExecReturn(
QT_TRANSLATE_NOOP("Exception", "Failed to perform boolean operation"));
}