0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 00:38:00 +01:00

gh-120584: Fix "unused thread_critical_sections" warning in test_critical_sections (#120585)

This commit is contained in:
Nikita Sobolev 2024-06-16 20:13:56 +03:00 committed by GitHub
parent b8484c6ad7
commit b337aefd3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))
{