@@ -6205,7 +6205,7 @@ static PyType_Slot HeapGcCType_slots[] = {
6205
6205
{Py_tp_init , heapctype_init },
6206
6206
{Py_tp_members , heapctype_members },
6207
6207
{Py_tp_dealloc , heapgcctype_dealloc },
6208
- {Py_tp_doc , heapgctype__doc__ },
6208
+ {Py_tp_doc , ( char * ) heapgctype__doc__ },
6209
6209
{0 , 0 },
6210
6210
};
6211
6211
@@ -6233,7 +6233,7 @@ static PyType_Slot HeapCType_slots[] = {
6233
6233
{Py_tp_init , heapctype_init },
6234
6234
{Py_tp_members , heapctype_members },
6235
6235
{Py_tp_dealloc , heapctype_dealloc },
6236
- {Py_tp_doc , heapctype__doc__ },
6236
+ {Py_tp_doc , ( char * ) heapctype__doc__ },
6237
6237
{0 , 0 },
6238
6238
};
6239
6239
@@ -6274,7 +6274,7 @@ static struct PyMemberDef heapctypesubclass_members[] = {
6274
6274
static PyType_Slot HeapCTypeSubclass_slots [] = {
6275
6275
{Py_tp_init , heapctypesubclass_init },
6276
6276
{Py_tp_members , heapctypesubclass_members },
6277
- {Py_tp_doc , heapctypesubclass__doc__ },
6277
+ {Py_tp_doc , ( char * ) heapctypesubclass__doc__ },
6278
6278
{0 , 0 },
6279
6279
};
6280
6280
@@ -6303,7 +6303,8 @@ heapctypesubclasswithfinalizer_init(PyObject *self, PyObject *args, PyObject *kw
6303
6303
static void
6304
6304
heapctypesubclasswithfinalizer_finalize (PyObject * self )
6305
6305
{
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 ;
6307
6308
6308
6309
/* Save the current exception, if any. */
6309
6310
PyErr_Fetch (& error_type , & error_value , & error_traceback );
@@ -6342,7 +6343,7 @@ static PyType_Slot HeapCTypeSubclassWithFinalizer_slots[] = {
6342
6343
{Py_tp_init , heapctypesubclasswithfinalizer_init },
6343
6344
{Py_tp_members , heapctypesubclass_members },
6344
6345
{Py_tp_finalize , heapctypesubclasswithfinalizer_finalize },
6345
- {Py_tp_doc , heapctypesubclasswithfinalizer__doc__ },
6346
+ {Py_tp_doc , ( char * ) heapctypesubclasswithfinalizer__doc__ },
6346
6347
{0 , 0 },
6347
6348
};
6348
6349
@@ -6372,7 +6373,7 @@ static PyTypeObject MethInstance_Type = {
6372
6373
.tp_new = PyType_GenericNew ,
6373
6374
.tp_flags = Py_TPFLAGS_DEFAULT ,
6374
6375
.tp_methods = meth_instance_methods ,
6375
- .tp_doc = PyDoc_STR (
6376
+ .tp_doc = ( char * ) PyDoc_STR (
6376
6377
"Class with normal (instance) methods to test calling conventions" ),
6377
6378
};
6378
6379
0 commit comments