]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46864: Suppress even more ob_shash deprecation warnings (GH-32176)
authorChristian Heimes <christian@python.org>
Wed, 30 Mar 2022 06:35:15 +0000 (09:35 +0300)
committerGitHub <noreply@github.com>
Wed, 30 Mar 2022 06:35:15 +0000 (08:35 +0200)
Python/pylifecycle.c

index 0754c1ac3bf40948a085fa815162ab32a20a391e..273f6d62b2a204b9b6d42fd626de5902fd50ad7a 100644 (file)
@@ -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