Skip to content

bpo-43693: Silence some compiler warnings. - #26588

Merged
ericsnowcurrently merged 1 commit into
python:mainfrom
ericsnowcurrently:silence-warnings
Jun 7, 2021
Merged

ericsnowcurrently merged 1 commit into
python:mainfrom
ericsnowcurrently:silence-warnings

Conversation

@ericsnowcurrently

@ericsnowcurrently ericsnowcurrently commented Jun 7, 2021 •

Copy link
Copy Markdown
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants