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:
parent
e70f0cb61d
commit
c72256e555
@ -541,7 +541,7 @@ void BenchCountSetBitsImpl(benchmark::State& state,
|
||||
{
|
||||
(void)_;
|
||||
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);
|
||||
timer.Stop();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user