diff --git a/src/slic3r/GUI/ImGuiWrapper.cpp b/src/slic3r/GUI/ImGuiWrapper.cpp index 93dbb1c8c..f64666d7b 100644 --- a/src/slic3r/GUI/ImGuiWrapper.cpp +++ b/src/slic3r/GUI/ImGuiWrapper.cpp @@ -273,10 +273,10 @@ bool ImGuiWrapper::update_key_data(wxKeyEvent &evt) if (type == wxEVT_CHAR) { // Char event const auto key = evt.GetUnicodeKey(); - unsigned int key_u = static_cast(key); // Release BackSpace, Delete, ... when miss wxEVT_KEY_UP event // Already Fixed at begining of new frame + // unsigned int key_u = static_cast(key); //if (key_u >= 0 && key_u < IM_ARRAYSIZE(io.KeysDown) && io.KeysDown[key_u]) { // io.KeysDown[key_u] = false; //} diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp index b440b84de..1138163fb 100644 --- a/src/slic3r/GUI/NotificationManager.cpp +++ b/src/slic3r/GUI/NotificationManager.cpp @@ -1135,7 +1135,7 @@ void NotificationManager::PrintHostUploadNotification::generate_text() line1 = shorten_to_line(m_filename, true); } else { line1 = shorten_to_line(m_filename + rest, false); - int over = line1.size() - m_filename.size(); + size_t over = line1.size() - m_filename.size(); if (over < 0) over = 0; if (over < rest.size()) diff --git a/src/slic3r/Utils/OctoPrint.cpp b/src/slic3r/Utils/OctoPrint.cpp index 48ad44033..d1e59cd2b 100644 --- a/src/slic3r/Utils/OctoPrint.cpp +++ b/src/slic3r/Utils/OctoPrint.cpp @@ -716,7 +716,7 @@ bool PrusaLink::get_storage(wxArrayString& output) const res = true; }) - .on_complete([&, this](std::string body, unsigned) { + .on_complete([&](std::string body, unsigned) { BOOST_LOG_TRIVIAL(debug) << boost::format("%1%: Got storage: %2%") % name % body; try { @@ -968,7 +968,6 @@ bool PrusaLink::upload_inner_with_host(PrintHostUpload upload_data, ProgressFn p } std::string url; - bool res = true; std::string storage_path = (use_put ? "api/v1/files" : "api/files"); storage_path += (upload_data.storage.empty() ? "/local" : upload_data.storage); #ifdef WIN32 diff --git a/src/slic3r/Utils/Repetier.cpp b/src/slic3r/Utils/Repetier.cpp index ad3c1a029..e266be1f8 100644 --- a/src/slic3r/Utils/Repetier.cpp +++ b/src/slic3r/Utils/Repetier.cpp @@ -73,7 +73,7 @@ bool Repetier::test(wxString &msg) const res = false; msg = format_error(body, error, status); }) - .on_complete([&, this](std::string body, unsigned) { + .on_complete([&](std::string body, unsigned) { BOOST_LOG_TRIVIAL(debug) << boost::format("%1%: Got version: %2%") % name % body; try {