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

This commit is contained in:
Christian Heimes 2022-03-30 09:35:15 +03:00 committed by GitHub
parent 63f32fae79
commit d8f530fe32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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