[Python-checkins] bpo-46864: Suppress even more ob_shash deprecation warnings (GH-32176)

tiran webhook-mailer at python.org
Wed Mar 30 02:35:36 EDT 2022


https://github.com/python/cpython/commit/d8f530fe329c6bd9ad6e1a9db9aa32b465c2d67f
commit: d8f530fe329c6bd9ad6e1a9db9aa32b465c2d67f
branch: main
author: Christian Heimes <christian at python.org>
committer: tiran <christian at python.org>
date: 2022-03-30T08:35:15+02:00
summary:

bpo-46864: Suppress even more ob_shash deprecation warnings (GH-32176)

files:
M Python/pylifecycle.c

diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 0754c1ac3bf40..273f6d62b2a20 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



More information about the Python-checkins mailing list