Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-118849: Fix "code will never be executed" warning in dictobject.c
  • Loading branch information
sobolevn committed May 9, 2024
commit d02409a686c44cebda4d92fa222cc7437822ce04
3 changes: 1 addition & 2 deletions Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -5491,10 +5491,9 @@ dictiter_iternext_threadsafe(PyDictObject *d, PyObject *self,
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);
int res = dictiter_iternextitem_lock_held(d, self, out_key, out_value);
Comment thread
colesbury marked this conversation as resolved.
Outdated
Py_END_CRITICAL_SECTION();
return res;
}
Expand Down