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

Rashad Kanavath mohammedrashadkm at gmail.com
Wed Nov 25 15:37:24 EST 2015


On Wed, Nov 25, 2015 at 4:47 PM, Matt McCormick <matt.mccormick at kitware.com>
wrote:

> 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)
>

I don't have access to the machine to do a dashboard submission. I will ask
the person or try a  new submission from my system. I will first check if
there is any warning flag that is messing up.

I will let you know tomorrow or day after.

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
>>
>>
>


-- 
Regards,
   Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20151125/954365d0/attachment.html>
-------------- next part --------------
_______________________________________________
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


More information about the Community mailing list