aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-14 18:27:57 -0700
committerChris Robinson <[email protected]>2019-09-14 18:35:23 -0700
commit807d3b64cac2793ce678acb3fc4d4191b2252875 (patch)
treeb766e0838c75fcf069015078259c5bfbd56bce63 /alc/alc.cpp
parent2cc0600476fc4ed13a64eeb59c02c213bd3b6dd4 (diff)
Enable and fix more warnings
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 8e9d3963..fa88cba8 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -3731,11 +3731,11 @@ START_API_FUNC
al::vector<ContextRef> orphanctxs;
for(ALCcontext *ctx : *dev->mContexts.load())
{
- auto iter = std::lower_bound(ContextList.begin(), ContextList.end(), ctx);
- if(iter != ContextList.end() && *iter == ctx)
+ auto ctxiter = std::lower_bound(ContextList.begin(), ContextList.end(), ctx);
+ if(ctxiter != ContextList.end() && *ctxiter == ctx)
{
- orphanctxs.emplace_back(std::move(*iter));
- ContextList.erase(iter);
+ orphanctxs.emplace_back(std::move(*ctxiter));
+ ContextList.erase(ctxiter);
}
}
listlock.unlock();