Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-02-10 20:47:49 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-02-10 20:47:49 +0300
commit1e1d3446182ea406ecc317774d9272b9d517f8c5 (patch)
tree6bdab95b7e358c4ebaa33358791257a7580478db
parent7a604c248953b406c0c4c87e648d7c19875e31a2 (diff)
Suppress warning on Windows "possible division by zero"vb_osx_warnings
-rw-r--r--src/libslic3r/SLA/AGGRaster.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libslic3r/SLA/AGGRaster.hpp b/src/libslic3r/SLA/AGGRaster.hpp
index e7507378d..3a130956a 100644
--- a/src/libslic3r/SLA/AGGRaster.hpp
+++ b/src/libslic3r/SLA/AGGRaster.hpp
@@ -147,9 +147,16 @@ public:
, m_renderer(m_raw_renderer)
, m_trafo(trafo)
{
+#ifdef _MSC_VER
// suppress false MSVC warning C4723: possible division by zero
+#pragma warning(push)
+#pragma warning(disable : 4723)
+#endif // _MSC_VER
m_pxdim_scaled.w_mm /= pd.w_mm;
m_pxdim_scaled.h_mm /= pd.h_mm;
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif // _MSC_VER
m_renderer.color(foreground);
clear(background);