MSVC: Fix compiler warnings

This commit is contained in:
wmayer
2024-11-22 14:29:35 +01:00
committed by wwmayer
parent b1f3fe9115
commit ac14e2c960
3 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ public:
FreeTurntable
};
static constexpr float defaultSphereRadius = 0.8;
static constexpr float defaultSphereRadius = 0.8F;
FCSphereSheetProjector(const SbSphere & sph, const SbBool orienttoeye = true)
: SbSphereSheetProjector(sph, orienttoeye)

View File

@@ -691,7 +691,7 @@ App::DocumentObjectExecReturn* FeatureExtrude::buildExtrusion(ExtrudeOptions opt
TopoShape::PrismMode::None,
true /*CheckUpToFaceLimits.getValue()*/);
}
catch (Base::Exception& e) {
catch (Base::Exception&) {
if (method == "UpToShape" && faceCount > 1){
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP(
"Exception",

View File

@@ -265,7 +265,7 @@ App::DocumentObjectExecReturn* SketchObject::execute()
rebuildExternalGeometry();
Constraints.acceptGeometry(getCompleteGeometry());
}
catch (const Base::Exception& e) {
catch (const Base::Exception&) {
// 9/16/24: We used to clear the constraints here, but we no longer want to do that
// as missing reference geometry is not considered an error while we sort out sketcher UI.
// Base::Console().Error("%s\nClear constraints to external geometry\n", e.what());