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

David Gobbi david.gobbi at gmail.com
Fri Mar 29 13:57:57 EDT 2013


On Fri, Mar 29, 2013 at 11:38 AM, David Cole <dlrdave at aol.com> wrote:
> More info about this... I can easily reproduce this warning without VTK
> using a main.cxx that looks like this:
>
>    #ifdef _MSC_VER
>    #pragma warning ( push, 4 )
>    #endif
>
>    #include <Python.h>
>
>    int main(int, const char *[])
>    {
>      return 0;
>    }
>
> So it is clearly not anything *specific* to VTK. I'm a little confused about
> it, though, because my CMakeCache clearly shows a warning level of "/W3"
> passed in the compiler flags, so something must tweak that warning level
> when compiling the python wrapper files. Perhaps it's hiding in a CMakeLists
> file, or perhaps there's a #pragma warning changer in a header.
>
> Whatever the cause, I am narrowing in on a patch to fix this.

Do a google search for "pyconfig.h" and "hypot", other python users
have run into this exact same issue.  I don't know if anyone found
a solution, though.

 - David



More information about the vtk-developers mailing list