[vtk-developers] void const TestVoidConstReturn() warning
David Doria
daviddoria at gmail.com
Wed Dec 28 13:54:06 EST 2011
>
> You should be able to suppress it with pragmas.
> Try adding this to TestCxxFeatures.cxx just before the test:
>
> #if defined(__GNUC__) && (__GNUC__ >= 4)
> #pragma GCC diagnostic push
> #pragma GCC diagnostic ignored "-Wignored-qualifiers"
> #endif
>
> And this just after the test:
>
> #if defined(__GNUC__) && (__GNUC__ >= 4)
> #pragma GCC diagnostic pop
> #endif
>
> There are already suppressions in the file for several other compilers
> (clang, icc, msvc).
>
> - David
>
Thanks David G - http://review.source.kitware.com/#/c/3579/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20111228/19f0839d/attachment.html>
More information about the vtk-developers
mailing list