https://github.com/python/cpython/commit/6ee68fbf9ba6ae79ec6691517c245690fb60bab2 commit: 6ee68fbf9ba6ae79ec6691517c245690fb60bab2 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: sobolevn <[email protected]> date: 2024-06-16T17:38:00Z summary:
[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 b337aefd3e44f5c8e38cd282273359d07cce6126) Co-authored-by: Nikita Sobolev <[email protected]> files: M Modules/_testinternalcapi/test_critical_sections.c diff --git a/Modules/_testinternalcapi/test_critical_sections.c b/Modules/_testinternalcapi/test_critical_sections.c index 1c0e049efafcb7..0129bd49ca93c3 100644 --- a/Modules/_testinternalcapi/test_critical_sections.c +++ b/Modules/_testinternalcapi/test_critical_sections.c @@ -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)) { _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
