From 7180c2e8d5069fab3859a2658a9820061bccba8c Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Mon, 30 Jul 2018 08:52:34 -0500 Subject: [PATCH] Initialize e_per_mm to make the compiler not freak out --- xs/src/libslic3r/Print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/libslic3r/Print.cpp b/xs/src/libslic3r/Print.cpp index 838d0c84f..405962e70 100644 --- a/xs/src/libslic3r/Print.cpp +++ b/xs/src/libslic3r/Print.cpp @@ -236,7 +236,7 @@ Print::make_skirt() //size_t extruder_idx = 0; // new to the cpp implementation - float e_per_mm, extruded_length = 0; + float e_per_mm {0.0}, extruded_length = 0; size_t extruders_warm = 0; if (this->config.min_skirt_length.getFloat() > 0) { //my $config = Config::GCode();