Commit cd42438f authored by Andrew Bauer's avatar Andrew Bauer
Browse files

Fixing compiler warnings of possible use of uninitialized variables

parent 5e6e1423
Pipeline #75292 failed with stage
......@@ -414,7 +414,7 @@ vtkLine* vtkLagrangeCurve::GetApproximateLine(
{
scalarsOut->SetNumberOfTuples(2);
}
int i;
int i(0);
this->SubCellCoordinatesFromId(i, subId);
// Get the point ids (and optionally scalars) for each of the 2 corners
// in the approximating line spanned by (i, i+1):
......
......@@ -648,7 +648,7 @@ vtkHexahedron* vtkLagrangeHexahedron::GetApproximateHex(
{
scalarsOut->SetNumberOfTuples(8);
}
int i, j, k;
int i(0), j(0), k(0);
this->SubCellCoordinatesFromId(i, j, k, subId);
// Get the point coordinates (and optionally scalars) for each of the 8 corners
// in the approximating hexahedron spanned by (i, i+1) x (j, j+1) x (k, k+1):
......
......@@ -485,7 +485,7 @@ vtkQuad* vtkLagrangeQuadrilateral::GetApproximateQuad(
{
scalarsOut->SetNumberOfTuples(4);
}
int i, j, k;
int i(0), j(0), k(0);
this->SubCellCoordinatesFromId(i, j, k, subId);
// Get the point ids (and optionally scalars) for each of the 4 corners
// in the approximating quadrilateral spanned by (i, i+1) x (j, j+1):
......
Markdown is supported
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