@@ -6205,7 +6205,7 @@ static PyType_Slot HeapGcCType_slots[] = {
62056205 {Py_tp_init , heapctype_init },
62066206 {Py_tp_members , heapctype_members },
62076207 {Py_tp_dealloc , heapgcctype_dealloc },
6208- {Py_tp_doc , heapgctype__doc__ },
6208+ {Py_tp_doc , ( char * ) heapgctype__doc__ },
62096209 {0 , 0 },
62106210};
62116211
@@ -6233,7 +6233,7 @@ static PyType_Slot HeapCType_slots[] = {
62336233 {Py_tp_init , heapctype_init },
62346234 {Py_tp_members , heapctype_members },
62356235 {Py_tp_dealloc , heapctype_dealloc },
6236- {Py_tp_doc , heapctype__doc__ },
6236+ {Py_tp_doc , ( char * ) heapctype__doc__ },
62376237 {0 , 0 },
62386238};
62396239
@@ -6274,7 +6274,7 @@ static struct PyMemberDef heapctypesubclass_members[] = {
62746274static PyType_Slot HeapCTypeSubclass_slots [] = {
62756275 {Py_tp_init , heapctypesubclass_init },
62766276 {Py_tp_members , heapctypesubclass_members },
6277- {Py_tp_doc , heapctypesubclass__doc__ },
6277+ {Py_tp_doc , ( char * ) heapctypesubclass__doc__ },
62786278 {0 , 0 },
62796279};
62806280
@@ -6303,7 +6303,8 @@ heapctypesubclasswithfinalizer_init(PyObject *self, PyObject *args, PyObject *kw
63036303static void
63046304heapctypesubclasswithfinalizer_finalize (PyObject * self )
63056305{
6306- PyObject * error_type , * error_value , * error_traceback , * m , * oldtype , * newtype ;
6306+ PyObject * error_type , * error_value , * error_traceback , * m ;
6307+ PyObject * oldtype = NULL , * newtype = NULL ;
63076308
63086309 /* Save the current exception, if any. */
63096310 PyErr_Fetch (& error_type , & error_value , & error_traceback );
@@ -6342,7 +6343,7 @@ static PyType_Slot HeapCTypeSubclassWithFinalizer_slots[] = {
63426343 {Py_tp_init , heapctypesubclasswithfinalizer_init },
63436344 {Py_tp_members , heapctypesubclass_members },
63446345 {Py_tp_finalize , heapctypesubclasswithfinalizer_finalize },
6345- {Py_tp_doc , heapctypesubclasswithfinalizer__doc__ },
6346+ {Py_tp_doc , ( char * ) heapctypesubclasswithfinalizer__doc__ },
63466347 {0 , 0 },
63476348};
63486349
@@ -6372,7 +6373,7 @@ static PyTypeObject MethInstance_Type = {
63726373 .tp_new = PyType_GenericNew ,
63736374 .tp_flags = Py_TPFLAGS_DEFAULT ,
63746375 .tp_methods = meth_instance_methods ,
6375- .tp_doc = PyDoc_STR (
6376+ .tp_doc = ( char * ) PyDoc_STR (
63766377 "Class with normal (instance) methods to test calling conventions" ),
63776378};
63786379
0 commit comments