diff options
| author | Christian Heimes <christian@python.org> | 2022-03-30 06:35:15 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-30 06:35:15 (GMT) |
| commit | d8f530fe329c6bd9ad6e1a9db9aa32b465c2d67f (patch) | |
| tree | fd658e7be073553d2f758b02db476d5e990c3934 /Python/pylifecycle.c | |
| parent | 63f32fae79e16e6dc71777bd3fcb623b2c3ff742 (diff) | |
| download | cpython-d8f530fe329c6bd9ad6e1a9db9aa32b465c2d67f.zip cpython-d8f530fe329c6bd9ad6e1a9db9aa32b465c2d67f.tar.gz cpython-d8f530fe329c6bd9ad6e1a9db9aa32b465c2d67f.tar.bz2 | |
bpo-46864: Suppress even more ob_shash deprecation warnings (GH-32176)
Diffstat (limited to 'Python/pylifecycle.c')
| -rw-r--r-- | Python/pylifecycle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 0754c1a..273f6d6 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -95,11 +95,16 @@ __attribute__(( #endif +/* Suppress deprecation warning for PyBytesObject.ob_shash */ +_Py_COMP_DIAG_PUSH +_Py_COMP_DIAG_IGNORE_DEPR_DECLS _PyRuntimeState _PyRuntime #if defined(__linux__) && (defined(__GNUC__) || defined(__clang__)) __attribute__ ((section (".PyRuntime"))) #endif = _PyRuntimeState_INIT; +_Py_COMP_DIAG_POP + static int runtime_initialized = 0; PyStatus |
