diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-05-09 17:15:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-09 17:15:14 (GMT) |
commit | 82abe75e77129bebb3c13d807e8040f6924194f6 (patch) | |
tree | b2dbffff5b6f49587d203c6453a8b783169b1ff9 | |
parent | 8af84b503d0b62a3db0d806d39f42c1e08746079 (diff) | |
download | cpython-82abe75e77129bebb3c13d807e8040f6924194f6.zip cpython-82abe75e77129bebb3c13d807e8040f6924194f6.tar.gz cpython-82abe75e77129bebb3c13d807e8040f6924194f6.tar.bz2 |
gh-118849: Fix "code will never be executed" warning in `dictobject.c` (#118850)
-rw-r--r-- | Objects/dictobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index b0fce09..985a326 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -5396,6 +5396,7 @@ static int dictiter_iternext_threadsafe(PyDictObject *d, PyObject *self, PyObject **out_key, PyObject **out_value) { + int res; dictiterobject *di = (dictiterobject *)self; Py_ssize_t i; PyDictKeysObject *k; @@ -5491,7 +5492,6 @@ fail: Py_DECREF(d); return -1; - int res; try_locked: Py_BEGIN_CRITICAL_SECTION(d); res = dictiter_iternextitem_lock_held(d, self, out_key, out_value); |