Fixing some compilation warnings

This commit is contained in:
Vojtech Bubnik 2021-03-15 10:36:03 +01:00
parent 95c5763b83
commit ba5e8860cb
3 changed files with 3 additions and 5 deletions

View File

@ -69,7 +69,7 @@ static bool clip_narrow_corner(
Vec2i64 p2 = it2->cast<int64_t>(); Vec2i64 p2 = it2->cast<int64_t>();
Vec2i64 p02; Vec2i64 p02;
Vec2i64 p22; 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. // As long as there is at least a single triangle left in the polygon.
while (polygon.size() >= 3) { while (polygon.size() >= 3) {

View File

@ -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) 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); std::string text = PrintHostUploadNotification::get_upload_job_text(id, filename, host);
bool found = false; // bool found = false;
for (std::unique_ptr<PopNotification>& notification : m_pop_notifications) { for (std::unique_ptr<PopNotification>& notification : m_pop_notifications) {
if (notification->get_type() == NotificationType::ProgressBar && notification->compare_text(text)) { if (notification->get_type() == NotificationType::ProgressBar && notification->compare_text(text)) {
dynamic_cast<PrintHostUploadNotification*>(notification.get())->set_percentage(percentage); dynamic_cast<PrintHostUploadNotification*>(notification.get())->set_percentage(percentage);
wxGetApp().plater()->get_current_canvas3D()->schedule_extra_frame(0); wxGetApp().plater()->get_current_canvas3D()->schedule_extra_frame(0);
found = true; // found = true;
} }
} }
/* /*

View File

@ -46,7 +46,6 @@ SCENARIO("Iterators", "[MutablePolygon]") {
} }
WHEN("Deleting 1st point") { WHEN("Deleting 1st point") {
auto it_2nd = p.begin().next(); auto it_2nd = p.begin().next();
auto it_3rd = p.end();
auto it = p.begin().remove(); auto it = p.begin().remove();
THEN("Size is 2") { THEN("Size is 2") {
REQUIRE(p.size() == 2); REQUIRE(p.size() == 2);
@ -59,7 +58,6 @@ SCENARIO("Iterators", "[MutablePolygon]") {
WHEN("Deleting 2nd point") { WHEN("Deleting 2nd point") {
auto it_1st = p.begin(); auto it_1st = p.begin();
auto it_2nd = it_1st.next(); auto it_2nd = it_1st.next();
auto it_3rd = p.end();
auto it = it_2nd.remove(); auto it = it_2nd.remove();
THEN("Size is 2") { THEN("Size is 2") {
REQUIRE(p.size() == 2); REQUIRE(p.size() == 2);