[Insight-users] combining output from segmentation with label map attributes using Gaetan Lehmann's paper: "Label object representation and manipulation with ITK"

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 11 17:23:26 EST 2009


Hi John,

Thanks for the clarification.

We have looked at this warning in the past, and there
is no easy way of solving it in a portable manner.

In ITK we are currently disabling the warning.

We do this by adding the flag:

         -Wno-deprecated


in lines 506-509 of the top level CMakeLists.txt file:

  itkCHECK_CXX_ACCEPTS_FLAGS("-Wno-deprecated" CXX_HAS_DEPRECATED_FLAG)
  IF(CXX_HAS_DEPRECATED_FLAG)
    SET(ITK_REQUIRED_CXX_FLAGS "${ITK_REQUIRED_CXX_FLAGS} -Wno-deprecated")
  ENDIF(CXX_HAS_DEPRECATED_FLAG)


You may consider doing the
same thing in your project.

      Regards,


             Luis


-----
PS. Please keep the discussions in the mailing list.

------------------------------------------------
On Fri, Dec 11, 2009 at 11:34 AM, John Drozd <john.drozd at gmail.com> wrote:
> Hi Luis,
>
> I probably used the word antiquated incorrectly.  What I mean is that when I
> compile my code, I get this warning: (line 65 is #include
> "itkRelabelComponentImageFilter.h") and the compiler tells me that:
>
> [jdrozd at trumpet
> ConnectedThresholdImageFilter_and_BinaryImageToStatisticsLabelMapFilter]$
> make                                                               Scanning
> dependencies of target ConnectedThresholdImageFilter
> [100%] Building CXX object
> CMakeFiles/ConnectedThresholdImageFilter.dir/ConnectedThresholdImageFilter.o
> In file included from
> /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/ext/hash_map:64,
>                  from
> /trumpet/downloads/3DSlicerDec22009/Slicer3-lib/Insight/Code/Common/itk_hash_map.h:69,
>                  from
> /trumpet/downloads/3DSlicerDec22009/Slicer3-lib/Insight/Code/BasicFilters/itkRelabelComponentImageFilter.txx:25,
>                  from
> /trumpet/downloads/3DSlicerDec22009/Slicer3-lib/Insight/Code/BasicFilters/itkRelabelComponentImageFilter.h:298,
>                  from
> /trumpet/downloads/ConnectedThresholdImageFilter_and_BinaryImageToStatisticsLabelMapFilter_Plugin/ConnectedThresholdImageFilter_and_BinaryImageToStatisticsLabelMapFilter/ConnectedThresholdImageFilter.cxx:65:
> /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../include/c++/4.3.2/backward/backward_warning.h:33:2:
> warning: #warning This file includes at least one deprecated or antiquated
> header which may be removed without further notice at a future date. Please
> use a non-deprecated interface with equivalent functionality instead. For a
> listing of replacement headers and interfaces, consult the file
> backward_warning.h. To disable this warning use -Wno-deprecated.
> Linking CXX executable ConnectedThresholdImageFilter
> [100%] Built target ConnectedThresholdImageFilter
>
> Thanks,
> john
>


More information about the Insight-users mailing list