[issue39571] clang warns "warning: redefinition of typedef 'PyTypeObject' is a C11 feature [-Wtypedef-redefinition]"

STINNER Victor report at bugs.python.org
Thu Feb 6 17:17:12 EST 2020


STINNER Victor <vstinner at python.org> 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.:

Oh, nice! I proposed PR 18385. Would you mind to confirm that it fix the issue for you? At least, I tested manually and the clang warning goes away with this change.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39571>
_______________________________________


More information about the Python-bugs-list mailing list