[ITK-dev] clang throws a lot of -Wunknown-attributes warning.

Rashad Kanavath mohammedrashadkm at gmail.com
Tue Nov 24 10:39:37 EST 2015


Hello all,

I am getting a lot of warnings when using itk with clang compiler.

clang version: 3.5.0
Fedora Linux 22 x86_64
ITK trunk

In file included from
/home/otbtesting/sources/orfeo/trunk/OTB-Nightly/Modules/Core/SpatialObjects/include/otbLineSpatialObjectList.h:23:
In file included from
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkLineSpatialObject.h:23:
In file included from
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkPointBasedSpatialObject.h:21:
In file included from
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkSpatialObject.h:23:
In file included from
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkAffineGeometryFrame.h:23:
In file included from
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkScalableAffineTransform.h:21:
In file included from
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkAffineTransform.h:21:
In file included from
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkMatrixOffsetTransformBase.h:24:
In file included from
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkTransform.h:25:
In file included from
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkVariableLengthVector.h:1348:
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkVariableLengthVector.hxx:312:3:
warning: unknown attribute 'error' ignored [-Wunknown-attributes]
  itkStaticAssert(
  ^
/home/otbtesting/install/itk/trunk/Release/include/ITK-4.9/itkStaticAssert.h:40:35:
note: expanded from macro 'itkStaticAssert'
      ({extern int __attribute__((error(str))) StaticAssertFailure(); \
                                  ^
3 warnings generated.

-- 
Regards,
   Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20151124/5879192f/attachment.html>


More information about the Insight-developers mailing list