Commit f0825f48 authored by David Gobbi's avatar David Gobbi

Fix uninitialized array warnings.

There were dashboard warnings about array elements that might be
used uninitialized.  Set the arrays to reasonable default values.

Change-Id: I6507d778ff315367c2798b1568e2b4eac7731cd2
parent c43e8a83
......@@ -941,7 +941,7 @@ void vtkImageInterpolatorPrecomputeWeights(
}
}
int inId[4];
int inId[4] = { 0, 0, 0, 0 };
int l = 0;
switch (weights->BorderMode)
{
......
......@@ -275,7 +275,7 @@ void vtkFixedPointCompositeGOHelperGenerateImageIndependentNN( T *data,
VTKKWRCHelper_CroppingCheckNN( pos );
unsigned char mag[4];
unsigned char mag[4] = { 1, 1, 1, 1 };
for ( c = 0; c < components; c++ )
{
val[c] = static_cast<unsigned short>(((*(dptr+c)) + shift[c])*scale[c]);
......
......@@ -291,7 +291,7 @@ void vtkFixedPointCompositeGOShadeHelperGenerateImageIndependentNN( T *data,
VTKKWRCHelper_CroppingCheckNN( pos );
unsigned short normal[4];
unsigned char mag[4];
unsigned char mag[4] = { 1, 1, 1, 1};
for ( c = 0; c < components; c++ )
{
val[c] = static_cast<unsigned short>(((*(dptr+c)) + shift[c])*scale[c]);
......
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