Commit 62c7b745 authored by Robert Maynard's avatar Robert Maynard
Browse files

VTK-m MortonCodes on GCC 7 was generating maybe-uninitialized warnings.

The id4 while always valid is constructed using a lookup table and the
compiler can't see if that will always be a valid vec 4.
parent cd858926
......@@ -213,8 +213,7 @@ public:
// the wonders of floating point math. This is bad. If we calculate in the same order
// for all faces, then at worst, two different faces can enter the same bucket, which
// we currently check for.
vtkm::Vec<vtkm::Id, 4> faceIndices;
faceIndices[3] = -1;
vtkm::Vec<vtkm::Id, 4> faceIndices(-1);
//Number of indices this face has
const vtkm::Int32 indiceCount = tables.ShapesFaceList(tableOffset + i, 0);
for (vtkm::Int32 j = 1; j <= indiceCount; j++)
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