Skip to content

Commit

Permalink
Suppress unwanted cppcheck 2.13 diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
laurynas-biveinis committed Dec 29, 2023
1 parent 529927f commit eb73d3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmark/micro_benchmark_node_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ void full_node_scan_benchmark(::benchmark::State &state) {
const auto key_limit =
detail::make_full_node_size_tree<Db, NodeSize>(test_db, key_count);
for (const auto _ : state) {
// cppcheck-suppress useStlAlgorithm
items_processed += detail::get_key_loop(
test_db, key_limit,
detail::number_to_full_node_size_tree_key<NodeSize>);
Expand Down Expand Up @@ -990,6 +991,7 @@ void minimal_tree_full_scan(::benchmark::State &state) {

std::int64_t items_processed = 0;
for (const auto _ : state) {
// cppcheck-suppress useStlAlgorithm
items_processed += detail::get_key_loop(
test_db, key_limit,
detail::number_to_minimal_node_size_tree_key<NodeSize>);
Expand Down

0 comments on commit eb73d3b

Please sign in to comment.