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:
parent
b8484c6ad7
commit
b337aefd3e
@ -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
Block a user