diff options
author | Victor Stinner <vstinner@python.org> | 2023-12-03 11:16:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-03 11:16:31 (GMT) |
commit | 1f2a676785d48ed9ac01e60cc56a82e44b725474 (patch) | |
tree | 8bde0ce4fcf587e2b9b39363afd2bb49daedaee4 /Include/longobject.h | |
parent | 29e6c7b68acac628b084a82670708008be262379 (diff) | |
download | cpython-1f2a676785d48ed9ac01e60cc56a82e44b725474.zip cpython-1f2a676785d48ed9ac01e60cc56a82e44b725474.tar.gz cpython-1f2a676785d48ed9ac01e60cc56a82e44b725474.tar.bz2 |
gh-106560: Fix redundant declarations in Include/ (#112611)
Don't declare PyBool_Type, PyLong_Type and PySys_Audit() twice, but
only once.
Compiler warnings seen by building Python with gcc -Wredundant-decls.
Diffstat (limited to 'Include/longobject.h')
-rw-r--r-- | Include/longobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/longobject.h b/Include/longobject.h index 7393254..51005ef 100644 --- a/Include/longobject.h +++ b/Include/longobject.h @@ -7,7 +7,7 @@ extern "C" { /* Long (arbitrary precision) integer object interface */ -PyAPI_DATA(PyTypeObject) PyLong_Type; +// PyLong_Type is declared by object.h #define PyLong_Check(op) \ PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) |