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 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) {

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)
{
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) {
if (notification->get_type() == NotificationType::ProgressBar && notification->compare_text(text)) {
dynamic_cast<PrintHostUploadNotification*>(notification.get())->set_percentage(percentage);
wxGetApp().plater()->get_current_canvas3D()->schedule_extra_frame(0);
found = true;
// found = true;
}
}
/*