diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-16 17:38:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-16 17:38:00 (GMT) |
commit | 6ee68fbf9ba6ae79ec6691517c245690fb60bab2 (patch) | |
tree | b2ffcc196ec0a1df2016ecb65d76c1501b434a48 /Modules | |
parent | 96b784b61fdf4b18e6e4420bd3835942e0fce750 (diff) | |
download | cpython-6ee68fbf9ba6ae79ec6691517c245690fb60bab2.zip cpython-6ee68fbf9ba6ae79ec6691517c245690fb60bab2.tar.gz cpython-6ee68fbf9ba6ae79ec6691517c245690fb60bab2.tar.bz2 |
[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 <mail@sobolevn.me>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testinternalcapi/test_critical_sections.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testinternalcapi/test_critical_sections.c b/Modules/_testinternalcapi/test_critical_sections.c index 1c0e049..0129bd4 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)) { |