10000 bpo-46864: Suppress even more ob_shash deprecation warnings (GH-32176) · python/cpython@d8f530f · GitHub
[go: up one dir, main page]

Skip to content

Commit d8f530f

Browse files
authored
bpo-46864: Suppress even more ob_shash deprecation warnings (GH-32176)
1 parent 63f32fa commit d8f530f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Python/pylifecycle.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,16 @@ __attribute__((
9595

9696
#endif
9797

98+
/* Suppress deprecation warning for PyBytesObject.ob_shash */
99+
_Py_COMP_DIAG_PUSH
100+
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
98101
_PyRuntimeState _PyRuntime
99102
#if defined(__linux__) && (defined(__GNUC__) || defined(__clang__))
100103
__attribute__ ((section (".PyRuntime")))
101104
#endif
102105
= _PyRuntimeState_INIT;
106+
_Py_COMP_DIAG_POP
107+
103108
static int runtime_initialized = 0;
104109

105110
PyStatus

0 commit comments

Comments
 (0)
0