diff --git a/src/libslic3r/MutablePolygon.cpp b/src/libslic3r/MutablePolygon.cpp index f166ce701..104b4c6ee 100644 --- a/src/libslic3r/MutablePolygon.cpp +++ b/src/libslic3r/MutablePolygon.cpp @@ -69,7 +69,7 @@ static bool clip_narrow_corner( Vec2i64 p2 = it2->cast(); Vec2i64 p02; Vec2i64 p22; - int64_t dist2_next; + int64_t dist2_next = 0; // As long as there is at least a single triangle left in the polygon. while (polygon.size() >= 3) { diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index a9ac68036..1dfd02c2f 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -1138,12 +1138,12 @@ void NotificationManager::push_upload_job_notification(wxEvtHandler* evt_handle void NotificationManager::set_upload_job_notification_percentage(int id, const std::string& filename, const std::string& host, float percentage) { std::string text = PrintHostUploadNotification::get_upload_job_text(id, filename, host); - bool found = false; +// bool found = false; for (std::unique_ptr& notification : m_pop_notifications) { if (notification->get_type() == NotificationType::ProgressBar && notification->compare_text(text)) { dynamic_cast(notification.get())->set_percentage(percentage); wxGetApp().plater()->get_current_canvas3D()->schedule_extra_frame(0); - found = true; +// found = true; } } /* diff --git a/tests/libslic3r/test_mutable_polygon.cpp b/tests/libslic3r/test_mutable_polygon.cpp index 238e3604f..5a3c14441 100644 --- a/tests/libslic3r/test_mutable_polygon.cpp +++ b/tests/libslic3r/test_mutable_polygon.cpp @@ -46,7 +46,6 @@ SCENARIO("Iterators", "[MutablePolygon]") { } WHEN("Deleting 1st point") { auto it_2nd = p.begin().next(); - auto it_3rd = p.end(); auto it = p.begin().remove(); THEN("Size is 2") { REQUIRE(p.size() == 2); @@ -59,7 +58,6 @@ SCENARIO("Iterators", "[MutablePolygon]") { WHEN("Deleting 2nd point") { auto it_1st = p.begin(); auto it_2nd = it_1st.next(); - auto it_3rd = p.end(); auto it = it_2nd.remove(); THEN("Size is 2") { REQUIRE(p.size() == 2);