diff --git a/Src/PoissonRecon.cpp b/Src/PoissonRecon.cpp index af995ff..e93ebf9 100644 --- a/Src/PoissonRecon.cpp +++ b/Src/PoissonRecon.cpp @@ -427,7 +427,7 @@ int Execute( int argc , char* argv[] ) if( !fp ) fprintf( stderr , "Failed to open voxel file for writing: %s\n" , VoxelGrid.value ); else { - int res; + int res = 0; Pointer( Real ) values = tree.Evaluate( ( ConstPointer( Real ) )solution , res , isoValue , VoxelDepth.value ); fwrite( &res , sizeof(int) , 1 , fp ); if( sizeof(Real)==sizeof(float) ) fwrite( values , sizeof(float) , res*res*res , fp ); diff --git a/Src/SparseMatrix.inl b/Src/SparseMatrix.inl index 4decf5d..9f9874b 100644 --- a/Src/SparseMatrix.inl +++ b/Src/SparseMatrix.inl @@ -265,7 +265,8 @@ int SparseMatrix::SolveSymmetric( const SparseMatrix& M , const Vector M.Multiply( solution , r ); r = b - r; Vector< T2 > d = r; - double delta_new , delta_0; + double delta_new = 0.0; + double delta_0 = 0.0; for( int i=0 ; i