[Insight-developers] Re: MacOS Warnings 64bits to 32bits truncation : At end of Files ???

Luis Ibanez luis.ibanez at kitware.com
Sat Jan 26 08:45:52 EST 2008


HI Sean, Mathieu,

Something strange is happening with the warning from


http://www.itk.org/Testing/Sites/RogueResearch3/Mac10.5-InsightReview-gcc-dbg-ppc64/20080126-0100-Nightly/BuildWarning.html

Many of them are indicating a:

    warning: implicit conversion shortens 64-bit value into a 32-bit value


in the two last lines of code of several classes.

For example:

    Code/IO/itkBioRadImageIO.cxx Line: 429
    Code/IO/itkBioRadImageIO.cxx Line: 430

This happens also with

  Code/IO/itkArchetypeSeriesFileNames.cxx Line: 263
  Code/IO/itkAnalyzeImageIOFactory.cxx Line: 56
  Code/IO/itkAnalyzeImageIO.cxx Line: 1538


...and others...


Thanks for any hints,


    Luis



-----------------------------------------------------------------------------
On 1/25/08, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Hi Sean,
>
> That's great news !
>
> Thanks for fixing the Apple headers and enabling the CMake flag.
>
> Yesterday's pass should have solved most of the warnings in
> Code/IO.  We will see what is remaining in tomorrow's Dashboard.
>
> Then we probably would want to enable the flag in Code/Common.
>
>
>     Luis
>
>
> ---------------------
> Sean McBride wrote:
> > On 1/25/08 11:20 AM, Luis Ibanez said:
> >
> >
> >>   ITK_USE_64BITS_APPLE_TRUNCATION_WARNING
> >>
> >>
> >>You will find it in the Advanced options, once you update
> >>your checkout of ITK.
> >>
> >>Please enable this CMake flag on the machines where you
> >>want this warning to be used.
> >
> >
> > We have enabled this on our Mac10.5-InsightReview-gcc-dbg-ppc and
> > Mac10.5-InsightReview-gcc-dbg-ppc64 dashboards.  Each builds only one
> > architecture which will reduce the duplicate warnings seen elsewhere.
> > One is 32 bit only and one 64 bit only, each will have different sets of
> > warnings.  Also, we have fixed all the warnings from Apple's headers.
> >
>


More information about the Insight-developers mailing list