diff --git a/onnxruntime/test/perftest/performance_runner.cc b/onnxruntime/test/perftest/performance_runner.cc index 8ec9694227c14..24a2bd633b96c 100644 --- a/onnxruntime/test/perftest/performance_runner.cc +++ b/onnxruntime/test/perftest/performance_runner.cc @@ -218,6 +218,7 @@ Status PerformanceRunner::RunParallelDuration() { // Join tpool->Schedule([this, &counter, &m, &cv]() { + ORT_UNUSED_PARAMETER(this); std::unique_lock lock(m); cv.wait(lock, [&counter]() { return counter == 0; }); });