]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-105059: Use GCC/clang extension for PyObject union (GH-107232) (#107236)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 25 Jul 2023 13:01:24 +0000 (06:01 -0700)
committerGitHub <noreply@github.com>
Tue, 25 Jul 2023 13:01:24 +0000 (13:01 +0000)
commit0cf5f6a6db0c50e46687de1fd99f90d7f85f69ea
treed4f2a8e724fb226a58832ebfad82acd14a3ac193
parentfab36fb63eda4023097cb7f800d672ced26e338f
[3.12] gh-105059: Use GCC/clang extension for PyObject union (GH-107232) (#107236)

gh-105059: Use GCC/clang extension for PyObject union (GH-107232)

Anonymous union is new in C11. To prevent compiler warning
when using -pedantic compiler option, use Clang and GCC
extension on C99 and older.
(cherry picked from commit 6261585d63a31835b65d445d99dc14cca3fe9cf5)

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/object.h