[ITK Community] g++ 4.8 warnings - Locally defined typedefs but not used (ValueType, PrintType, ...)

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Mon Oct 28 17:52:26 EDT 2013


Thanks. Slicer code base has been updated accordingly [1].
Jc

[1] http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=22651


On Mon, Oct 28, 2013 at 5:07 PM, Matt McCormick
<matt.mccormick at kitware.com>wrote:

> Hi Jc,
>
> Thanks for the report.  This was fixed on master with
>
>
> http://itk.org/gitweb?p=ITK.git;h=737320d0405c3fff67ef2368bd07a74ec8c8ff36
>
> It has been backported to the release branch for your convenience with
>
>   ee6472628dcbb12d2723f04dbf3b14764de2b4ff
>
> Thanks,
> Matt
>
>
> On Mon, Oct 28, 2013 at 8:50 PM, Jean-Christophe Fillion-Robin
> <jchris.fillionr at kitware.com> wrote:
> > Hi Folks,
> >
> > When compiling Slicer against the release branch of ITK, I get some
> > "-Wunused-local-typedefs" warnings (See below). Should I submit a patch
> or
> > is there a good reason to have these unused local typedefs ?
> >
> > Compiler: g++ (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1
> >
> > Thanks
> > Jc
> >
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:
> > In member function ‘void
> > itk::Concept::HasNumericTraits<T>::Constraints::constraints()’:
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:594:59:
> > warning: typedef ‘ValueType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename NumericTraits< T >::ValueType      ValueType;
> >                                                            ^
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:595:59:
> > warning: typedef ‘PrintType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename NumericTraits< T >::PrintType      PrintType;
> >                                                            ^
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:596:59:
> > warning: typedef ‘AbsType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename NumericTraits< T >::AbsType        AbsType;
> >                                                            ^
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:597:59:
> > warning: typedef ‘AccumulateType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename NumericTraits< T >::AccumulateType
> AccumulateType;
> >                                                            ^
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:598:59:
> > warning: typedef ‘RealType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename NumericTraits< T >::RealType       RealType;
> >                                                            ^
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:599:59:
> > warning: typedef ‘ScalarRealType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename NumericTraits< T >::ScalarRealType
> ScalarRealType;
> >                                                            ^
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:600:59:
> > warning: typedef ‘FloatType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename NumericTraits< T >::FloatType      FloatType;
> >                                                            ^
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:
> > In member function ‘void
> > itk::Concept::HasPixelTraits<T>::Constraints::constraints()’:
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:628:52:
> > warning: typedef ‘ValueType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename PixelTraits< T >::ValueType ValueType;
> >                                                     ^
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:
> > In member function ‘void
> > itk::Concept::HasValueType<T>::Constraints::constraints()’:
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:643:37:
> > warning: typedef ‘ValueType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename T::ValueType ValueType;
> >                                      ^
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:
> > In member function ‘void itk::Concept::HasJoinTraits<T1,
> > T2>::Constraints::constraints()’:
> >
> /home/jchris/Projects/Slicer-SuperBuild-Debug-Qt485/ITKv4/Modules/Core/Common/include/itkConceptChecking.h:672:56:
> > warning: typedef ‘ValueType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >        typedef typename JoinTraits< T1, T2 >::ValueType ValueType;
> >                                                         ^
> >
> /home/jchris/Projects/Slicer/Libs/vtkITK/vtkITKArchetypeImageSeriesVectorReaderFile.cxx:
> > In function ‘void
> >
> vtkITKExecuteDataFromFileVector(vtkITKArchetypeImageSeriesVectorReaderFile*,
> > vtkImageData*)’:
> >
> /home/jchris/Projects/Slicer/Libs/vtkITK/vtkITKArchetypeImageSeriesVectorReaderFile.cxx:55:29:
> > warning: typedef ‘VectorPixelType’ locally defined but not used
> > [-Wunused-local-typedefs]
> >    typedef itk::Vector<T, 3> VectorPixelType;
> >
> > --
> > +1 919 869 8849
> >
> > _______________________________________________
> > Community mailing list
> > Community at itk.org
> > http://public.kitware.com/cgi-bin/mailman/listinfo/community
> >
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131028/1f2dbdc3/attachment.html>


More information about the Community mailing list