소스 검색

Remove another warning in the python wrapping

Andy Cedilnik 23 년 전
부모
커밋
3cfca938da
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/cmVTKWrapPythonCommand.cxx

+ 1 - 1
Source/cmVTKWrapPythonCommand.cxx

@@ -194,7 +194,7 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
 
 
   fprintf(fout,"\nstatic PyMethodDef Py%s_ClassMethods[] = {\n",
   fprintf(fout,"\nstatic PyMethodDef Py%s_ClassMethods[] = {\n",
 	  kitName);
 	  kitName);
-  fprintf(fout,"{NULL, NULL}};\n\n");
+  fprintf(fout,"{NULL, NULL, 0, NULL}};\n\n");
   
   
 #ifdef _WIN32
 #ifdef _WIN32
   fprintf(fout,"extern  \"C\" {__declspec( dllexport) void init%s();}\n\n",kitName);
   fprintf(fout,"extern  \"C\" {__declspec( dllexport) void init%s();}\n\n",kitName);