[ITK-dev] [ITK] clang throws a lot of -Wunknown-attributes warning.
Matt McCormick
matt.mccormick at kitware.com
Wed Nov 25 10:47:54 EST 2015
Hi Rashad,
Thanks for discussing issue.
I have been using that compiler and have not come across those warnings.
Are there any non-default flags or CMake options being used?
Could you please submit an Experimental build to the dashboard? ('ctest -D
Experimental' from a clean build tree)
Thanks,
Matt
On Tue, Nov 24, 2015 at 10:39 AM, Rashad Kanavath <
mohammedrashadkm at gmail.com> wrote:
> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-developers
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20151125/330c6d56/attachment.html>
More information about the Insight-developers
mailing list