[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 16:50:09 EDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131028/158d6571/attachment.html>


More information about the Community mailing list