Merge topic 'fix-UnitTestAbort-warning'

a51cc2e15 Fix unreferenced local variable warning

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !2984
This commit is contained in:
Sujin Philip 2023-02-14 15:51:22 +00:00 committed by Kitware Robot
commit ec73ec36ee

@ -77,7 +77,7 @@ int TestAbort()
result.GetNumberOfCells(),
" triangles");
}
catch (const vtkm::cont::ErrorUserAbort& e)
catch (const vtkm::cont::ErrorUserAbort&)
{
std::cout << "Execution was successfully aborted\n";
}
@ -90,7 +90,7 @@ int TestAbort()
std::cout << "Success: filter execution was not aborted. Result: " << result.GetNumberOfPoints()
<< " points and " << result.GetNumberOfCells() << " triangles\n";
}
catch (const vtkm::cont::ErrorUserAbort& e)
catch (const vtkm::cont::ErrorUserAbort&)
{
VTKM_TEST_FAIL("Execution was unexpectedly aborted");
}