[Insight-developers] Clang Warnings about in-class static initializers...

Bradley Lowekamp blowekamp at mail.nih.gov
Thu Dec 15 15:35:55 EST 2011


Kent,

I believe you are correct that this is a C++ extension. I also recall this warning coming up before, and that there is a CMake try compile which checks to see if the compiler has this extension.

So I agree that #2 is the solutions.

Brad

On Dec 15, 2011, at 3:29 PM, Williams, Norman K wrote:

> I built the svn trunk CLang compiler to use on OSX Lion and ran into a ton
> of errors about in-class static member initializers.  The warning says
> this is a gcc extension.
> 
> The header in question is in VXL, so to fix it properly we'd have to get
> the VXL people to incorporate a fix.
> 
> 1. I'm assuming this is a extension to standard C++ that is supported by
> all the ITK4-supported compilers.
> 2. Is this something that should be fixed, if only to shut CLang up about
> it?
> --
> Kent Williams norman-k-williams at uiowa.edu
> 
> 
> 
> 
> 
> 
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
> ________________________________
> _______________________________________________
> 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.html
> 
> 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://www.itk.org/mailman/listinfo/insight-developers



More information about the Insight-developers mailing list