Skip to content

Commit

Permalink
[3.13] pythongh-120584: Fix "unused thread_critical_sections" warning…
Browse files Browse the repository at this point in the history
… in `test_critical_sections` (pythonGH-120585) (python#120592)

pythongh-120584: Fix "unused thread_critical_sections" warning in `test_critical_sections` (pythonGH-120585)
(cherry picked from commit b337aef)

Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
miss-islington and sobolevn authored Jun 16, 2024
1 parent 96b784b commit 6ee68fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_testinternalcapi/test_critical_sections.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit 6ee68fb

Please sign in to comment.