summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-07-24 12:53:24 -0400
committerGitHub <noreply@github.com>2020-07-24 12:53:24 -0400
commit520af035d2dec281e8bc43440948621c7e7b1bd9 (patch)
treea41f0b73e1c2358d2257b35a1e8b5b03c11e477e /Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
parentf96f3b32788dc2e15a24288f56900d76ea78ecfa (diff)
parent062dd5ab0aea4e92cd8d2e58a6815eea52733701 (diff)
Merge pull request #8980 from Tilka/warnings
Fix some GCC warnings
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/ThreadWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/ThreadWidget.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
index 18bb7af3fb..eb67e2ad7d 100644
--- a/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/ThreadWidget.cpp
@@ -265,9 +265,6 @@ void ThreadWidget::Update()
const auto format_hex = [](u32 value) {
return QStringLiteral("%1").arg(value, 8, 16, QLatin1Char('0'));
};
- const auto format_f64_as_u64 = [](double value) {
- return QStringLiteral("%1").arg(Common::BitCast<u64>(value), 16, 16, QLatin1Char('0'));
- };
const auto format_hex_from = [&format_hex](u32 addr) {
addr = PowerPC::HostIsRAMAddress(addr) ? PowerPC::HostRead_U32(addr) : 0;
return format_hex(addr);
@@ -468,7 +465,7 @@ void ThreadWidget::OnSelectionChanged(int row)
{
Common::Debug::PartialContext context;
- if (row >= 0 && row < m_threads.size())
+ if (row >= 0 && size_t(row) < m_threads.size())
context = m_threads[row]->GetContext();
UpdateThreadContext(context);