Add removing of warnings and add comment about the file being generated in CMake
This commit is contained in:
parent
5ba65d0aa1
commit
c6017182bf
|
@ -175,8 +175,13 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprintf(fout,"// Generated by cmVTKWrapPythonCommand in CMake\n\n");
|
||||||
fprintf(fout,"#include <string.h>\n");
|
fprintf(fout,"#include <string.h>\n");
|
||||||
fprintf(fout,"#include \"Python.h\"\n\n");
|
fprintf(fout,"#include \"Python.h\"\n\n");
|
||||||
|
fprintf(fout,"// Handle compiler warning messages, etc.\n"
|
||||||
|
"#if defined( _MSC_VER ) && !defined(VTK_DISPLAY_WIN32_WARNINGS)\n"
|
||||||
|
"#pragma warning ( disable : 4706 )\n"
|
||||||
|
"#endif // Windows Warnings \n\n");
|
||||||
|
|
||||||
for (i = 0; i < classes.size(); i++)
|
for (i = 0; i < classes.size(); i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue