Merge pull request #20744 from oltolm/warnings

fix compiler warnings
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2025-08-24 21:56:07 +02:00
commit 0d8b4416f4
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -120,6 +120,8 @@ struct MultipartFormDataEncoder : UrlEncoder
Add(key, value, "", "");
}
using UrlEncoder::Add;
void Add(const std::string &key, const std::string &value, const std::string &filename, const std::string &mimeType)
{
data += "--" + boundary + "\r\n";
+2 -2
View File
@@ -1899,7 +1899,7 @@ void ImWatchWindow::Draw(ImConfig &cfg, ImControl &control, MIPSDebugInterface *
}
bool confirmed = ImGui::InputText("##edit", editBuffer_, ImGuiInputTextFlags_EnterReturnsTrue | ImGuiInputTextFlags_AutoSelectAll);
// Filter for only enter presses
confirmed = confirmed && ImGui::IsKeyPressed(ImGuiKey_Enter) || ImGui::IsKeyPressed(ImGuiKey_KeypadEnter);
confirmed = confirmed && (ImGui::IsKeyPressed(ImGuiKey_Enter) || ImGui::IsKeyPressed(ImGuiKey_KeypadEnter));
if (confirmed || ImGui::IsItemDeactivated()) {
watch.SetExpression(editBuffer_, mipsDebug);
editingWatchIndex_ = -1;
@@ -1935,7 +1935,7 @@ void ImWatchWindow::Draw(ImConfig &cfg, ImControl &control, MIPSDebugInterface *
break;
case WatchFormat::FLOAT:
memcpy(&valuef, &value, sizeof(valuef));
ImGui::Text("%f", value);
ImGui::Text("%f", static_cast<float>(value));
break;
case WatchFormat::STR:
if (Memory::IsValidAddress(value)) {