mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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.
This commit is contained in:
parent
29e6c7b68a
commit
1f2a676785
4 changed files with 4 additions and 6 deletions
|
@ -7,7 +7,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PyBool_Type;
|
||||
// PyBool_Type is declared by object.h
|
||||
|
||||
#define PyBool_Check(x) Py_IS_TYPE((x), &PyBool_Type)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue