[Insight-developers] GCC 4.8.2 compiler warning

Johnson, Hans J hans-johnson at uiowa.edu
Tue Nov 26 20:41:17 EST 2013


I¹m getting the following warning on gcc 4.8.2:

In file included from
/tmp/src/ITK/Modules/Core/Common/include/itkContinuousIndex.h:22:0,
                 from
/tmp/src/ITK/Modules/Core/Common/include/itkImageRegion.h:34,
                 from
/tmp/src/ITK/Modules/Core/Common/include/itkImage.h:21,
                 from
/tmp/src/ITK/Modules/Core/Common/include/itkImageSource.h:32,
                 from
/tmp/src/ITK/Modules/Core/Mesh/include/itkTriangleMeshToBinaryImageFilter.h
:21,
                 from
/tmp/src/ITK/Modules/Core/Mesh/test/itkTriangleMeshToBinaryImageFilterTest3
.cxx:19:
/tmp/src/ITK/Modules/Core/Common/include/itkIndex.h: In static member
function Œstatic void itk::ImageAlgorithm::DispatchedCopy(const
InputImageType*, OutputImageType*, const typename
InputImageType::RegionType&, const typename OutputImageType::RegionType&,
itk::ImageAlgorithm::TrueType) [with InputImageType = itk::Image<unsigned
char, 3u>; OutputImageType = itk::Image<unsigned char, 3u>; typename
InputImageType::RegionType = itk::ImageRegion<3u>; typename
OutputImageType::RegionType = itk::ImageRegion<3u>;
itk::ImageAlgorithm::TrueType = std::tr1::integral_constant<bool, true>]¹:
/tmp/src/ITK/Modules/Core/Common/include/itkIndex.h:226:19: warning: array
subscript is above array bounds [-Warray-bounds]
   { return m_Index[dim]; }
                   ^
/tmp/src/ITK/Modules/Core/Common/include/itkIndex.h:226:19: warning: array
subscript is above array bounds [-Warray-bounds]
/tmp/src/ITK/Modules/Core/Common/include/itkIndex.h:226:19: warning: array
subscript is above array bounds [-Warray-bounds]
   { return m_Index[dim]; }
                   ^

It looks serious to me, but I don¹t know how to decipher it.


I¹m not going to be able to look at this anytime soon.

Hans









________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list