IOS: work around incorrect -Wunused-but-set-variable warning

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96311
This commit is contained in:
Tillmann Karras 2020-07-24 16:37:47 +01:00
parent fbd34f72ad
commit 04b31e7eee
1 changed files with 2 additions and 2 deletions

View File

@ -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;