Commit e0f496ce authored by Robert Maynard's avatar Robert Maynard
Browse files

Fix warnings about unreachable break statement in ParametricCoordinates.

parent 0c36aef5
......@@ -664,17 +664,20 @@ WorldCoordinatesToParametricCoordinates(
vtkm::CellShapeTagGeneric shape,
const vtkm::exec::FunctorBase &worklet)
{
typename WorldCoordVector::ComponentType result;
switch (shape.Id)
{
vtkmGenericCellShapeMacro(
return WorldCoordinatesToParametricCoordinates(pointWCoords,
wcoords,
CellShapeTag(),
worklet));
result = WorldCoordinatesToParametricCoordinates(pointWCoords,
wcoords,
CellShapeTag(),
worklet));
default:
worklet.RaiseError("Unknown cell shape sent to world 2 parametric.");
return typename WorldCoordVector::ComponentType();
}
return result;
}
template<typename WorldCoordVector>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment