mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue