[llvm] c3c74eb - JobserverTest.cpp: Suppress a warning. [-Wunused-lambda-capture]
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 12 07:19:12 PDT 2025
Author: NAKAMURA Takumi
Date: 2025-10-12T23:05:35+09:00
New Revision: c3c74eb5b4c21040497fdb86be3175b7311cc234
URL: https://github.com/llvm/llvm-project/commit/c3c74eb5b4c21040497fdb86be3175b7311cc234
DIFF: https://github.com/llvm/llvm-project/commit/c3c74eb5b4c21040497fdb86be3175b7311cc234.diff
LOG: JobserverTest.cpp: Suppress a warning. [-Wunused-lambda-capture]
I don't know how to mark an item as `maybe_unused` on capture list.
I also guess `i` may be removed out of byval capture.
Added:
Modified:
llvm/unittests/Support/JobserverTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/JobserverTest.cpp b/llvm/unittests/Support/JobserverTest.cpp
index ddee0231af223..d27445897db0a 100644
--- a/llvm/unittests/Support/JobserverTest.cpp
+++ b/llvm/unittests/Support/JobserverTest.cpp
@@ -355,6 +355,7 @@ TEST_F(JobserverStrategyTest, ThreadPoolConcurrencyIsLimited) {
int CurrentActive = ++ActiveTasks;
LLVM_DEBUG(dbgs() << "Task " << i << ": Active tasks: " << CurrentActive
<< "\n");
+ (void)i;
int OldMax = MaxActiveTasks.load();
while (CurrentActive > OldMax)
MaxActiveTasks.compare_exchange_weak(OldMax, CurrentActive);
More information about the llvm-commits
mailing list