Fix deprecation warning from Google benchmark

The warning is that asking not to optimize a const variable does not
always work. Fix by simply not declaring the variable as const.
This commit is contained in:
Kenneth Moreland 2024-05-13 08:20:44 -06:00
parent e70f0cb61d
commit c72256e555

@ -541,7 +541,7 @@ void BenchCountSetBitsImpl(benchmark::State& state,
{ {
(void)_; (void)_;
timer.Start(); timer.Start();
const vtkm::Id setBits = vtkm::cont::Algorithm::CountSetBits(Config.Device, bits); vtkm::Id setBits = vtkm::cont::Algorithm::CountSetBits(Config.Device, bits);
benchmark::DoNotOptimize(setBits); benchmark::DoNotOptimize(setBits);
timer.Stop(); timer.Stop();