[Insight-developers] Bad warning flags for clang compiler

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Fri Sep 16 09:11:28 EDT 2011


Quoting Bill Lorensen <bill.lorensen at gmail.com>:

> Dave,
> This Kitware clang build:
> http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=1535538
>
> reports warnings like this:
> warning: unknown warning option '-Wno-long-double'

This warning is also reported by gcc, at least in the wrapping build

   http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=1525937

BTW it would be great to silence all those useless warning with wrapping.
Some help on that would be very welcome.

At this time those additional flags are making miss a lot of actually  
useful warnings.

> [-Wunknown-warning-option]
> warning: unknown warning option '-Wstrict-null-sentinel'
> [-Wunknown-warning-option]
>
> Looking at the CMake CheckCxxComplierFlage.cmake code,
> "warning: unknown warning option" is not one of the FAIL_REGEX strings. I
> think that macro needs a FAIL_REGEX line to handle the clang compiler.
>
> Bill
>




More information about the Insight-developers mailing list