]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43693: Silence some compiler warnings. (gh-26588)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 7 Jun 2021 23:58:38 +0000 (17:58 -0600)
committerGitHub <noreply@github.com>
Mon, 7 Jun 2021 23:58:38 +0000 (17:58 -0600)
commit165c884154901deae46b5e328a6414d130e6bfff
tree44d0d28e19cf9cb706b44f05b9bb6cfa5e7ab4ef
parent631f9938b1604d4f893417ec339b9e0fa9196fb1
bpo-43693: Silence some compiler warnings. (gh-26588)

The plan is to eventually make PyCodeObject opaque in the public C-API, with the full struct moved to Include/internal/pycore_code.h. _PyLocalsPlusKinds and _PyLocalsPlusKind started off there but were needed on PyCodeObject, hence the duplication. This led to warnings with some compilers. (Apparently it does not trigger a warning on my install of GCC.)

This change eliminates the superfluous typedef.

https://bugs.python.org/issue43693
Include/cpython/code.h
Include/internal/pycore_code.h