Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Fix uninialized variable warning
In member function 'unsigned int itk::SymmetricEigenAnalysis<TMatrix, TVector, TEigenMatrix>::ComputeEigenValuesLegacy(const TMatrix&, TVector&) const [with TMatrix = itk::SymmetricSecondRankTensor<float, 3>; TVector = itk::FixedArray<double, 3>; TEigenMatrix = itk::SymmetricSecondRankTensor<float, 3>]', inlined from 'unsigned int itk::SymmetricEigenAnalysis<TMatrix, TVector, TEigenMatrix>::ComputeEigenValues(const TMatrix&, TVector&) const [with TMatrix = itk::SymmetricSecondRankTensor<float, 3>; TVector = itk::FixedArray<double, 3>; TEigenMatrix = itk::SymmetricSecondRankTensor<float, 3>]' at ITK/Modules/Core/Common/include/itkSymmetricEigenAnalysis.hxx:36:36, inlined from 'TOutput itk::Functor::SymmetricEigenAnalysisFunction<TInput, TOutput>::operator()(const TInput&) const [with TInput = itk::SymmetricSecondRankTensor<float, 3>; TOutput = itk::FixedArray<double, 3>]' at ITK/Modules/Filtering/ImageIntensity/include/itkSymmetricEigenAnalysisImageFilter.h:61:36, inlined from 'void itk::UnaryFunctorImageFilter<TInputImage, TOutputImage, TFunction>::DynamicThreadedGenerateData(const OutputImageRegionType&) [with TInputImage = itk::Image<itk::SymmetricSecondRankTensor<float, 3>, 3>; TOutputImage = itk::Image<itk::FixedArray<double, 3>, 3>; TFunction = itk::Functor::SymmetricEigenAnalysisFunction<itk::SymmetricSecondRankTensor<float, 3>, itk::FixedArray<double, 3> >]' at ITK/Modules/Core/Common/include/itkUnaryFunctorImageFilter.hxx:97:29: ITK/Modules/Core/Common/include/itkSymmetricEigenAnalysis.hxx:70:18: warning: 'eigenValues' may be used uninitialized [-Wmaybe-uninitialized] 70 | dVector[row] = D[row]; In file included from ITK/Modules/Filtering/ImageIntensity/test/itkSymmetricEigenAnalysisImageFilterTest.cxx:22: ITK/Modules/Filtering/ImageIntensity/include/itkSymmetricEigenAnalysisImageFilter.h: In member function 'void itk::UnaryFunctorImageFilter<TInputImage, TOutputImage, TFunction>::DynamicThreadedGenerateData(const OutputImageRegionType&) [with TInputImage = itk::Image<itk::SymmetricSecondRankTensor<float, 3>, 3>; TOutputImage = itk::Image<itk::FixedArray<double, 3>, 3>; TFunction = itk::Functor::SymmetricEigenAnalysisFunction<itk::SymmetricSecondRankTensor<float, 3>, itk::FixedArray<double, 3> >]': ITK/Modules/Filtering/ImageIntensity/include/itkSymmetricEigenAnalysisImageFilter.h:59:13: note: 'eigenValues' declared here 59 | TOutput eigenValues; | ^~~~~~~~~~~
- Loading branch information