summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmVTKWrapPythonCommand.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx
index 2f23559..08934b6 100644
--- a/Source/cmVTKWrapPythonCommand.cxx
+++ b/Source/cmVTKWrapPythonCommand.cxx
@@ -175,8 +175,13 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
return false;
}
+ fprintf(fout,"// Generated by cmVTKWrapPythonCommand in CMake\n\n");
fprintf(fout,"#include <string.h>\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++)
{