aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark_runner.cc
diff options
context:
space:
mode:
authorIgor Zhukov <fsb4000@yandex.ru>2024-08-19 10:39:37 +0700
committerGitHub <noreply@github.com>2024-08-19 06:39:37 +0300
commitc19cfee61e136effb05a7fc8a037b0db3b13bd4c (patch)
treeebd85932ceba880a81483b82faa7b85887d1c652 /src/benchmark_runner.cc
parent6126d2a2052bb48d3472ac0468ade50397d393c5 (diff)
downloadgoogle-benchmark-c19cfee61e136effb05a7fc8a037b0db3b13bd4c.tar.gz
google-benchmark-c19cfee61e136effb05a7fc8a037b0db3b13bd4c.zip
Fix C4459: Rename a function parameter `profiler_manager` to avoid hiding the global declaration. (#1839)
* Fix C4459: Rename a function parameter `profiler_manager` to avoid hiding the global declaration. * Treat warnings as errors for MSVC * disable one warning for MSVC
Diffstat (limited to 'src/benchmark_runner.cc')
-rw-r--r--src/benchmark_runner.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/benchmark_runner.cc b/src/benchmark_runner.cc
index a380939..c658d57 100644
--- a/src/benchmark_runner.cc
+++ b/src/benchmark_runner.cc
@@ -126,14 +126,14 @@ BenchmarkReporter::Run CreateRunReport(
void RunInThread(const BenchmarkInstance* b, IterationCount iters,
int thread_id, ThreadManager* manager,
PerfCountersMeasurement* perf_counters_measurement,
- ProfilerManager* profiler_manager) {
+ ProfilerManager* profiler_manager_) {
internal::ThreadTimer timer(
b->measure_process_cpu_time()
? internal::ThreadTimer::CreateProcessCpuTime()
: internal::ThreadTimer::Create());
State st = b->Run(iters, thread_id, &timer, manager,
- perf_counters_measurement, profiler_manager);
+ perf_counters_measurement, profiler_manager_);
BM_CHECK(st.skipped() || st.iterations() >= st.max_iterations)
<< "Benchmark returned before State::KeepRunning() returned false!";
{