Browse Source

Add removing of warnings and add comment about the file being generated in CMake

Andy Cedilnik 23 years ago
parent
commit
c6017182bf
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/cmVTKWrapPythonCommand.cxx

+ 5 - 0
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++)
     {