[issue39571] clang warns "warning: redefinition of typedef 'PyTypeObject' is a C11 feature [-Wtypedef-redefinition]"
Sam Gross
report at bugs.python.org
Thu Feb 6 17:14:10 EST 2020
Sam Gross <colesbury at gmail.com> added the comment:
Alternatively I think you can just remove the typedef from Include/cpython/object.h since Include/object.h is always included first. i.e.:
typedef struct _typeobject {
...
} PyTypeObject;
to simply
struct _typeobject {
...
};
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39571>
_______________________________________
More information about the Python-bugs-list
mailing list