Fix uninitialized variable warning on gcc-10.3

This commit is contained in:
Nick Thompson 2021-04-21 16:31:31 +00:00
parent 4f3ff257fa
commit 25c14a7ea9

@ -49,7 +49,7 @@ struct BoundingIntervalHierarchyTester : public vtkm::worklet::WorkletMapField
const vtkm::Id expectedId) const const vtkm::Id expectedId) const
{ {
vtkm::Vec3f parametric; vtkm::Vec3f parametric;
vtkm::Id cellId; vtkm::Id cellId = -1;
bih.FindCell(point, cellId, parametric); bih.FindCell(point, cellId, parametric);
return (1 - static_cast<vtkm::IdComponent>(expectedId == cellId)); return (1 - static_cast<vtkm::IdComponent>(expectedId == cellId));
} }