8000 bpo-39571: Fix clang warning on PyTypeObject typedef (GH-18385) · python/cpython@f95cd19 · GitHub
[go: up one dir, main page]

Skip to content

Commit f95cd19

Browse files
authored
bpo-39571: Fix clang warning on PyTypeObject typedef (GH-18385)
Only define PyTypeObject type once.
1 parent c86a112 commit f95cd19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/cpython/object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ typedef struct {
190190
* backwards-compatibility */
191191
typedef Py_ssize_t printfunc;
192192

193-
typedef struct _typeobject {
193+
struct _typeobject {
194194
PyObject_VAR_HEAD
195195
const char *tp_name; /* For printing, in format "<module>.<name>" */
196196
Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */
@@ -271,7 +271,7 @@ typedef struct _typeobject {
271271

272272
destructor tp_finalize;
273273
vectorcallfunc tp_vectorcall;
274-
} PyTypeObject;
274+
};
275275

276276
/* The *real* layout of a type object when allocated on the heap */
277277
typedef struct _heaptypeobject {

0 commit comments

Comments
 (0)
0