            
              if (currentFunction->NumberOfArguments == 1 
                  && currentFunction->ArgTypes[0] == 0x5000)
-@@ -1381,6 +1413,8 @@
+@@ -1381,9 +1409,15 @@
    fprintf(fp,"#include <vtksys/ios/sstream>\n");
    fprintf(fp,"#include \"%s.h\"\n",data->ClassName);
  

retrieving revision 1.90
diff -u -r1.90 vtkPythonUtil.cxx
--- Common/vtkPythonUtil.cxx	6 Aug 2008 20:23:20 -0000	1.90
+++ Common/vtkPythonUtil.cxx	27 May 2009 14:19:14 -0000
@@ -22,6 +22,7 @@
 #include "vtkDataArray.h"
 #include "vtkObject.h"

   fprintf(fp,"#if defined(WIN32)\n");
   fprintf(fp,"extern \"C\" { __declspec( dllexport ) PyObject *PyVTKClass_%sNew(char *); }\n",
           data->ClassName);
+  /* Disable unreachable code warnings.  Visual Studio assumes that
+   * externs won't throw, so it spits out warnings with our try /
+   * catch blocks around VTK method calls. */
+  fprintf(fp, "#pragma warning( disable: 4207 )\n");
   fprintf(fp,"#else\n");
   fprintf(fp,"extern \"C\" { PyObject *PyVTKClass_%sNew(char *); }\n",
           data->ClassName);
