Skip to content

Commit

Permalink
bpo-46864: Suppress even more ob_shash deprecation warnings (GH-32176)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Mar 30, 2022
1 parent 63f32fa commit d8f530f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Python/pylifecycle.c
Expand Up @@ -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
Expand Down

0 comments on commit d8f530f

Please sign in to comment.