Clean up after bpo-33738. (GH-7627)

* Add declarations even if they are overridden by macros.
* Make the declaration and the definition of PyExceptionClass_Name
  consistent.
This commit is contained in:
Serhiy Storchaka 2018-06-11 15:01:47 +03:00 committed by GitHub
parent 9d6171ded5
commit 5cbefa9919
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 9 deletions

View file

@ -347,7 +347,7 @@ PyException_SetContext(PyObject *self, PyObject *context)
char *
PyExceptionClass_Name(PyObject *ob)
{
return ((PyTypeObject*)ob)->tp_name;
return (char *)((PyTypeObject*)ob)->tp_name;
}
static struct PyMemberDef BaseException_members[] = {