[Support] In tests, fix warning: variable ‘Threads’ set but not used
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Sat, 15 Feb 2020 14:03:38 +0000 (09:03 -0500)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Sat, 15 Feb 2020 14:05:01 +0000 (09:05 -0500)
llvm/unittests/Support/ThreadPool.cpp

index 237be87..25e71ae 100644 (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();