mirror of https://github.com/python/cpython
[3.13] gh-120584: Fix "unused thread_critical_sections" warning in `test_critical_sections` (GH-120585) (#120592)
gh-120584: Fix "unused thread_critical_sections" warning in `test_critical_sections` (GH-120585)
(cherry picked from commit b337aefd3e
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
96b784b61f
commit
6ee68fbf9b
|
@ -130,6 +130,7 @@ test_critical_sections_suspend(PyObject *self, PyObject *Py_UNUSED(args))
|
|||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
#ifdef Py_CAN_START_THREADS
|
||||
struct test_data {
|
||||
PyObject *obj1;
|
||||
PyObject *obj2;
|
||||
|
@ -170,7 +171,6 @@ thread_critical_sections(void *arg)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef Py_CAN_START_THREADS
|
||||
static PyObject *
|
||||
test_critical_sections_threads(PyObject *self, PyObject *Py_UNUSED(args))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue