summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2020-07-24 16:37:47 +0100
committerTillmann Karras <tilkax@gmail.com>2020-07-24 16:38:54 +0100
commit04b31e7eeec5a7a0b6b561ca00a59fa25ba3dea2 (patch)
tree5a1ae3df9c3b9df3d1ea31fc9555340cccd53f34 /Source/Core
parentfbd34f72ad41fb7176f8f56d2c28686700ea2ec5 (diff)
IOS: work around incorrect -Wunused-but-set-variable warning
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96311
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/Network/Socket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Core/IOS/Network/Socket.cpp b/Source/Core/Core/IOS/Network/Socket.cpp
index 9b04ba41ab..ae8f2b08e3 100644
--- a/Source/Core/Core/IOS/Network/Socket.cpp
+++ b/Source/Core/Core/IOS/Network/Socket.cpp
@@ -754,7 +754,7 @@ void WiiSockMan::UpdatePollCommands()
const auto elapsed = elapsed_d.count();
last_time = now;
- for (auto& pcmd : pending_polls)
+ for (PollCommand& pcmd : pending_polls)
{
// Don't touch negative timeouts
if (pcmd.timeout > 0)
@@ -764,7 +764,7 @@ void WiiSockMan::UpdatePollCommands()
pending_polls.erase(
std::remove_if(
pending_polls.begin(), pending_polls.end(),
- [this](auto& pcmd) {
+ [this](PollCommand& pcmd) {
const auto request = Request(pcmd.request_addr);
auto& pfds = pcmd.wii_fds;
int ret = 0;