We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 795b365 commit 894d0eaCopy full SHA for 894d0ea
Python/pystate.c
@@ -47,10 +47,13 @@ extern "C" {
47
static PyThreadState *_PyGILState_GetThisThreadState(struct _gilstate_runtime_state *gilstate);
48
static void _PyThreadState_Delete(PyThreadState *tstate, int check_current);
49
50
-
+/* Suppress deprecation warning for PyBytesObject.ob_shash */
51
+_Py_COMP_DIAG_PUSH
52
+_Py_COMP_DIAG_IGNORE_DEPR_DECLS
53
/* We use "initial" if the runtime gets re-used
54
(e.g. Py_Finalize() followed by Py_Initialize(). */
55
static const _PyRuntimeState initial = _PyRuntimeState_INIT;
56
+_Py_COMP_DIAG_POP
57
58
static int
59
alloc_for_runtime(PyThread_type_lock *plock1, PyThread_type_lock *plock2,
0 commit comments