Skip to content

Commit

Permalink
warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilsnd committed May 17, 2024
1 parent 7a2d1e7 commit 94cf43c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ class NativeMapViewTest : AppCenter() {

override fun waitForEmpty() {
// no-op
return 0
}
}
}
4 changes: 1 addition & 3 deletions src/mbgl/util/thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ std::thread ThreadedSchedulerBase::makeSchedulerThread(size_t index) {
}

// 2. Visit a task from each
for (auto q : pending) {
for (auto& q : pending) {
std::function<void()> tasklet;

{
Expand Down Expand Up @@ -157,8 +157,6 @@ void ThreadedSchedulerBase::waitForEmpty(const void* tag = nullptr) {
// After waiting for the queue to empty, go ahead and erase it from the map.
taggedQueue.erase(tag);
}

return;
}

} // namespace mbgl

0 comments on commit 94cf43c

Please sign in to comment.