diff --git a/src/Gui/DlgAddPropertyVarSet.cpp b/src/Gui/DlgAddPropertyVarSet.cpp index ad6cf93376..0c64439970 100644 --- a/src/Gui/DlgAddPropertyVarSet.cpp +++ b/src/Gui/DlgAddPropertyVarSet.cpp @@ -402,7 +402,7 @@ void DlgAddPropertyVarSet::onEditFinished() { checkGroup(); checkType(); } - catch (const CreatePropertyException& e) { + catch (const CreatePropertyException&) { if (!namePropertyToAdd.empty()) { clearCurrentProperty(); } diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 25e0222707..2f0f3352c4 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -1976,7 +1976,7 @@ void MainWindow::renderDevBuildWarning( { // Create a background box that fades out the artwork for better legibility QColor fader (Qt::white); - constexpr float halfDensity (0.65); + constexpr float halfDensity (0.65F); fader.setAlphaF(halfDensity); QBrush fillBrush(fader, Qt::BrushStyle::SolidPattern); painter.setBrush(fillBrush); diff --git a/src/Mod/CAM/PathSimulator/AppGL/DlgCAMSimulator.h b/src/Mod/CAM/PathSimulator/AppGL/DlgCAMSimulator.h index 7acf3da759..b962424971 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/DlgCAMSimulator.h +++ b/src/Mod/CAM/PathSimulator/AppGL/DlgCAMSimulator.h @@ -23,6 +23,10 @@ #ifndef PATHSIMULATOR_CAMSimulatorGui_H #define PATHSIMULATOR_CAMSimulatorGui_H +#ifdef _MSC_VER +#pragma warning(disable : 4251) +#endif + #include #include #include diff --git a/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp b/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp index bee1c69b09..5ddcb028ec 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp +++ b/src/Mod/CAM/PathSimulator/AppGL/SimDisplay.cpp @@ -570,7 +570,7 @@ void SimDisplay::UpdateProjection() shaderLinePath.UpdateProjectionMat(projmat); shaderLinePath.UpdateObjColor(pathLineColorPassed); - projmat[2][2] *= 0.99999; + projmat[2][2] *= 0.99999F; shaderGeomCloser.Activate(); shaderGeomCloser.UpdateProjectionMat(projmat); }