[Insight-developers] Longstanding warnings in ThirdParty/MetaIO/src/MetaIO
Sean McBride
sean at rogue-research.com
Thu Aug 25 15:10:26 EDT 2011
Hi all,
For several days now, both my ITK and VTK dashboards have this warning. I think whoever changed this code has not noticed the new warnings:
<http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=1464266>
<http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=1463568>
In file included from /Users/builder/kitware/ITK/Modules/ThirdParty/MetaIO/src/MetaIO/metaArrow.cxx:12:
In file included from /Users/builder/kitware/ITK/Modules/ThirdParty/MetaIO/src/MetaIO/metaArrow.h:17:
/Users/builder/kitware/ITK/Modules/ThirdParty/MetaIO/src/MetaIO/metaUtils.h:379:15: warning: array index of '32767' indexes past the end of an array (that contains 4096 elements) [-Warray-bounds]
((char *)(_mf->value))[(sizeof(_mf->value)-1)] = '\0';
^ ~~~~~~~~~~~~~~~~~~~~
/Users/builder/kitware/ITK/Modules/ThirdParty/MetaIO/src/MetaIO/metaArrow.cxx:199:3: note: in instantiation of function template specialization 'MET_InitWriteField<double>' requested here
MET_InitWriteField(mF, "Direction", MET_DOUBLE_ARRAY, m_NDims, M_Direction);
^
/Users/builder/kitware/ITK/Modules/ThirdParty/MetaIO/src/MetaIO/metaTypes.h:201:4: note: array 'value' declared here
double value[4096]; // Memory and pointers for the field's value(s).
^
1 warning generated.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the Insight-developers
mailing list