[vtk-developers] dashboard warning from VS10 math.h

David Gobbi david.gobbi at gmail.com
Wed Mar 20 22:05:12 EDT 2013


On Wed, Mar 20, 2013 at 7:40 PM, David Cole <dlrdave at aol.com> wrote:
> After turning on python and Qt, I started getting warnings like this on my
> dashboard:
>
> [3933/8363] Building CXX object
> Wrapping\Python\CMakeFiles\vtkWrappingPython.dir\vtkPythonCommand.cxx.obj
>
> C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(162) :
> warning C4211: nonstandard extension used : redefined extern to stat
>
>     http://open.cdash.org/viewBuildError.php?type=1&buildid=2851369
>
> Should I suppress those in the CTestCustom file (in case somebody else runs
> a similar dashboard eventually), or should I use “/wd4211” in my compiler
> flags locally for this build, or ... something else?

The first step is to find out what is causing the warning, the
compiler gives the line number.  Is math.h redefining something
that we have already defined in VTK?  If so, we want to know.
The warning should only be hidden after it has been determined
to be either harmless or unavoidable.

 - David



More information about the vtk-developers mailing list