Skip to content

Commit

Permalink
[FIX] gcc14: asan stack-use-after-scope
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Jul 11, 2023
1 parent b18e8e2 commit e800a25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/performance/search/index_construction_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ static constexpr size_t seed{0x6126f};
static void arguments(benchmark::internal::Benchmark * b)
{
#ifndef NDEBUG
for (int32_t length : {50, 5000})
constexpr std::array<int32_t, 2> values{50, 5000};
#else
for (int32_t length : {50, 5000, 50'000})
constexpr std::array<int32_t, 3> values{50, 5000, 50'000};
#endif // NDEBUG
for (int32_t length : values)
{
if (length > max_length)
throw std::logic_error{"Increase max_length to at least " + std::to_string(length)};
Expand Down

0 comments on commit e800a25

Please sign in to comment.