diff options
| author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-06-07 17:58:38 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-07 17:58:38 -0600 |
| commit | 165c884154901deae46b5e328a6414d130e6bfff (patch) | |
| tree | 44d0d28e19cf9cb706b44f05b9bb6cfa5e7ab4ef /Include/cpython/code.h | |
| parent | 631f9938b1604d4f893417ec339b9e0fa9196fb1 (diff) | |
| download | cpython-git-165c884154901deae46b5e328a6414d130e6bfff.tar.gz | |
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
Diffstat (limited to 'Include/cpython/code.h')
| -rw-r--r-- | Include/cpython/code.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h index a338374454..a3db7d9d5e 100644 --- a/Include/cpython/code.h +++ b/Include/cpython/code.h @@ -26,7 +26,6 @@ typedef uint16_t _Py_CODEUNIT; typedef struct _PyOpcache _PyOpcache; -// These are duplicated from pycore_code.h. typedef unsigned char _PyLocalsPlusKind; typedef _PyLocalsPlusKind *_PyLocalsPlusKinds; |
