From 8b5900a3b4334995b39a1f687ce0080f406e90ab Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 29 Mar 2022 17:32:48 +0200 Subject: [PATCH] bpo-46864: Suppress even more ob_shash deprecation warnings --- Python/pylifecycle.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 0754c1ac3bf409..273f6d62b2a204 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