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

Sean McBride sean at rogue-research.com
Fri Dec 16 17:30:19 EST 2011


On Fri, 16 Dec 2011 22:27:07 +0000, Williams, Norman K said:

>So the solution might not require mucking around with VNL at all -- if
>there's a CLang compiler flag we can turn on that will make that GCC
>extension an error instead of a warning, VNL's configuration stage will
>generate a vnl_compiler_config.h that will get rid of the bazillion
>warnings.

See:
<http://clang.llvm.org/docs/UsersManual.html#diagnostics>

You could probably do this:

#pragma clang diagnostic push
#pragma clang diagnostic error "-Wc++0x-static-nonintegral-init"

// test code

#pragma clang diagnostic pop

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the Insight-developers mailing list