summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapPythonCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-06-28 13:43:46 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-06-28 13:43:46 (GMT)
commitc6017182bf734d58942773898a9bf9d8a99738dd (patch)
treede98e658f30b401ecec4bec2673f29a84ab40a82 /Source/cmVTKWrapPythonCommand.cxx
parent5ba65d0aa105e0bd015b632b9c34a85ce79ca32d (diff)
downloadCMake-c6017182bf734d58942773898a9bf9d8a99738dd.zip
CMake-c6017182bf734d58942773898a9bf9d8a99738dd.tar.gz
CMake-c6017182bf734d58942773898a9bf9d8a99738dd.tar.bz2
Add removing of warnings and add comment about the file being generated in CMake
Diffstat (limited to 'Source/cmVTKWrapPythonCommand.cxx')
-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++)
{