Mod: [skip ci] fix some MSVC warnings

This commit is contained in:
wmayer
2022-09-05 13:45:22 +02:00
parent ded6b7234b
commit f35f77e98e
3 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ Mesh::Extension3MF::Resource ThumbnailExtension3MF::addMesh(const Mesh::MeshObje
ViewProviderMeshBuilder().createMesh(mesh.getKernel(), coord, faces);
SbRotation rot(-0.353553, -0.146447, -0.353553, -0.853553);
SbRotation rot(-0.35355f, -0.14644f, -0.35355f, -0.85355f);
cam->orientation.setValue(rot);
SbViewportRegion vpr(256, 256);
cam->viewAll(root, vpr);

View File

@@ -132,7 +132,7 @@ PyObject *BlendPointPy::setSize(PyObject *args)
getBlendPointPtr()->setSize(size);
Py_Return;
}
catch (Standard_Failure &e) {
catch (Standard_Failure &) {
PyErr_SetString(Base::PyExc_FC_CADKernelError, "Failed to set size");
return nullptr;
}

View File

@@ -252,7 +252,7 @@ void GeometryObject::projectShape(const TopoDS_Shape& inShape,
hidIso = invertGeometry(hidIso);
}
}
catch (const Standard_Failure& e) {
catch (const Standard_Failure&) {
throw Base::RuntimeError("GeometryObject::projectShape - OCC error occurred while extracting edges");
}
catch (...) {