mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +00:00
bpo-46864: Suppress even more ob_shash deprecation warnings (GH-32176)
This commit is contained in:
parent
63f32fae79
commit
d8f530fe32
1 changed files with 5 additions and 0 deletions
|
@ -95,11 +95,16 @@ __attribute__((
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Suppress deprecation warning for PyBytesObject.ob_shash */
|
||||||
|
_Py_COMP_DIAG_PUSH
|
||||||
|
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
|
||||||
_PyRuntimeState _PyRuntime
|
_PyRuntimeState _PyRuntime
|
||||||
#if defined(__linux__) && (defined(__GNUC__) || defined(__clang__))
|
#if defined(__linux__) && (defined(__GNUC__) || defined(__clang__))
|
||||||
__attribute__ ((section (".PyRuntime")))
|
__attribute__ ((section (".PyRuntime")))
|
||||||
#endif
|
#endif
|
||||||
= _PyRuntimeState_INIT;
|
= _PyRuntimeState_INIT;
|
||||||
|
_Py_COMP_DIAG_POP
|
||||||
|
|
||||||
static int runtime_initialized = 0;
|
static int runtime_initialized = 0;
|
||||||
|
|
||||||
PyStatus
|
PyStatus
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue