[Support] In tests, fix warning: variable ‘Threads’ set but not used

This commit is contained in:
Alexandre Ganea 2020-02-15 09:03:38 -05:00
parent 8a48c4a97c
commit b25fc4123c
1 changed files with 0 additions and 2 deletions

View File

@ -179,10 +179,8 @@ void ThreadPoolTest::TestAllThreads(ThreadPoolStrategy S) {
llvm::DenseSet<llvm::BitVector> ThreadsUsed;
std::mutex Lock;
unsigned Threads = 0;
{
ThreadPool Pool(S);
Threads = Pool.getThreadCount();
for (size_t I = 0; I < 10000; ++I) {
Pool.async([&] {
waitForMainThread();