Skip to content

Commit

Permalink
Fixed shadowing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Mar 21, 2023
1 parent 95ff13b commit 030f1c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/picobench/picobench.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
//
// VERSION HISTORY
//
// 2.03 (2023-03-20) * Added PICOBENCH_UNIQUE_SYM_SUFFIX
// 2.03 (2023-03-xx) * Added PICOBENCH_UNIQUE_SYM_SUFFIX
// * Fixed shadowing warning
// 2.02 (2023-02-16) * Fixed same-func warning if user data is different
// * Macro PICOBENCH_NAMESPACE to change namespace
// * Changed marking of baseline in human-readable reports
Expand Down Expand Up @@ -411,11 +412,11 @@ class report
const char* name;
std::vector<benchmark> benchmarks; // benchmark view

const benchmark* find_benchmark(const char* name) const
const benchmark* find_benchmark(const char* bname) const
{
for (auto& b : benchmarks)
{
if (strcmp(b.name, name) == 0)
if (strcmp(b.name, bname) == 0)
return &b;
}

Expand Down

0 comments on commit 030f1c0

Please sign in to comment.