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

Williams, Norman K norman-k-williams at uiowa.edu
Fri Dec 16 11:07:35 EST 2011


The CLang I built was the SVN trunk as of yesterday.

I do get all the way through building ITK4, so VXL is compiling on Lion,
both with gcc-llvm-4.2 and CLang.

I am not on the VXL mailing list; it's kind of strange that they'd persist
in using a language feature that's non standard, particularly when it's so
easy to do it correctly.

On 12/16/11 9:37 AM, "Sean McBride" <sean at rogue-research.com> wrote:


>On Thu, 15 Dec 2011 20:29:54 +0000, Williams, Norman K said:
>
>>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?
>
>I have brought this up with the vxl folks in the past.  At first, clang
>rejected it entirely (as it's technically invalid) but later clang
>allowed it with it a warning.  We'd have to check the list archives, but
>I don't believe it's fixed in vxl master currently, I think I disabled
>that warning on my vxl dashboard so they would not be distracted from the
>many other warnings clang emits, but no one seems to have done much
>there...
>
>(Worse, vxl doesn't even build, with its default settings, on Lion
>anymore.)



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


More information about the Insight-developers mailing list