From aca2c3d1dd8e25d4cd72240390948687b307e070 Mon Sep 17 00:00:00 2001 From: dsarrut Date: Tue, 12 Jul 2011 08:11:29 +0200 Subject: [PATCH] Add initialisation to avoid warning --- itk/itkRayCastInterpolateImageFunctionWithOrigin.txx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx b/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx index 7a58c05..72dcc31 100644 --- a/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx +++ b/itk/itkRayCastInterpolateImageFunctionWithOrigin.txx @@ -498,6 +498,9 @@ RayCastHelper { double maxInterDist, interDist; double cornerVect[4][3]; + for(uint i=0; i<4; i++) + for(uint j=0; j<3; j++) + cornerVect[i][j] = 0.0; // to avoid warning int cross[4][3], noInterFlag[6]; int nSidesCrossed, crossFlag, c[4]; double ax, ay, az, bx, by, bz; -- 2.46.1