From: dsarrut Date: Tue, 12 Jul 2011 06:11:29 +0000 (+0200) Subject: Add initialisation to avoid warning X-Git-Tag: v1.3.0~291 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=inline;h=aca2c3d1dd8e25d4cd72240390948687b307e070;p=clitk.git Add initialisation to avoid warning --- 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;