From c6017182bf734d58942773898a9bf9d8a99738dd Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 28 Jun 2002 09:43:46 -0400 Subject: [PATCH] Add removing of warnings and add comment about the file being generated in CMake --- Source/cmVTKWrapPythonCommand.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx index 2f23559201..08934b6317 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 \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++) {