You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.12 introduce a -Wredundant-decls warning.
// test.c#include<Python.h>intmain(void) {}
$ gcc test.c -o test$(pkg-config --cflags python-3.12) -Wredundant-decls
In file included from /usr/include/python3.12/Python.h:52,
from test.c:1:
/usr/include/python3.12/longobject.h:10:26: warning: redundant redeclaration of ‘PyLong_Type’ [-Wredundant-decls]
10 | PyAPI_DATA(PyTypeObject) PyLong_Type;| ^~~~~~~~~~~
In file included from /usr/include/python3.12/Python.h:44:
/usr/include/python3.12/object.h:210:26: note: previous declaration of ‘PyLong_Type’ with type ‘PyTypeObject’ {aka ‘struct _typeobject’}
210 | PyAPI_DATA(PyTypeObject) PyLong_Type;| ^~~~~~~~~~~
In file included from /usr/include/python3.12/Python.h:54:
/usr/include/python3.12/boolobject.h:10:26: warning: redundant redeclaration of ‘PyBool_Type’ [-Wredundant-decls]
10 | PyAPI_DATA(PyTypeObject) PyBool_Type;| ^~~~~~~~~~~
/usr/include/python3.12/object.h:211:26: note: previous declaration of ‘PyBool_Type’ with type ‘PyTypeObject’ {aka ‘struct _typeobject’}
211 | PyAPI_DATA(PyTypeObject) PyBool_Type;|
Activity
libmount: (python): work around python 3.12 bug
libmount: (python): work around python 3.12 bug
libmount: (python): work around python 3.12 bug
libmount: (python): work around python 3.12 bug
libmount: (python): work around python 3.12 bug
meson: Workaround python 3.12 warning
Fix client build with Python 3.12
Fix client build with Python 3.12
pythongh-106560: Fix redundant declarations in Python/frozen.c
pythongh-106560: Fix redundant declarations in Include/
pythongh-106560: Fix redundant declarations in Include/
pythongh-106560: Fix redundant declarations in Python/frozen.c
gh-106560: Fix redundant declarations in Include/ (#112611)
gh-106560: Fix redundant declarations in Python/frozen.c (#112612)
pythongh-106560: Fix redundant declarations in Include/ (python#112611)
pythongh-106560: Fix redundant declarations in Python/frozen.c (pytho…
[3.12] gh-106560: Fix redundant declarations in Include/ (#112611) (#…
[3.12] gh-106560: Fix redundant declarations in Python/frozen.c (#112612
meson: Workaround python 3.12 warning
pythongh-106560: Fix redundant declarations in Include/ (python#112611)
pythongh-106560: Fix redundant declarations in Python/frozen.c (pytho…
hugovk commentedon Mar 15, 2024
Closing as the PRs have been merged and backported. Please let us know if there's still more to do. Thanks for the report!
pythongh-106560: Fix redundant declarations in Include/ (python#112611)
pythongh-106560: Fix redundant declarations in Python/frozen.c (pytho…
Fix client build with Python 3.12