[Insight-developers] Annoying Deprecation Warnings

Bill Lorensen bill.lorensen at gmail.com
Thu Dec 20 11:49:45 EST 2007


My changes make the usage between vtk and itk the same.

I'm still a bit concerned that on Windows, it seems that the warning appears
even if the method is not explicitly used.

Bill

On Dec 20, 2007 11:37 AM, Sean McBride <sean at rogue-research.com> wrote:

> On 12/20/07 7:48 AM, Bill Lorensen said:
>
> >What concerns mean is the generation of so many warnings (even if they
> are
> >correct).
> >
> >I'll try Sean's suggestion later today.
>
> It occurred to me that VTK does not seem to have this problem... VTK's
> macro is the same as ITK's:
>
> #define itkLegacyMacro(method) method __attribute__((deprecated))
> #  define VTK_LEGACY(method) method __attribute__((deprecated))
>
> But VTK uses it like so:
>
>  VTK_LEGACY(static int CreateDirectoryA(const char* dir));
>
> Where ITK does:
>
>  itkLegacyMacro( virtual const GMatrixType &
>    ComputeG(const InputVectorType& landmarkVector) const; )
>
> Oh how I wish ITK and VTK shared more code.... :)
>
> So ITK's 10 or so uses of the macro can simply be fixed.
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20071220/27254dfb/attachment.htm


More information about the Insight-developers mailing list