summaryrefslogtreecommitdiffstats
path: root/Include/longobject.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-12-03 11:16:31 (GMT)
committerGitHub <noreply@github.com>2023-12-03 11:16:31 (GMT)
commit1f2a676785d48ed9ac01e60cc56a82e44b725474 (patch)
tree8bde0ce4fcf587e2b9b39363afd2bb49daedaee4 /Include/longobject.h
parent29e6c7b68acac628b084a82670708008be262379 (diff)
downloadcpython-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.h2
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)