-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Remove unreachable break statements in _ctypes_test.c #140585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
(cherry picked from commit 2a1c9bd) Co-authored-by: Shamil <ashm.tech@proton.me>
(cherry picked from commit 2a1c9bd) Co-authored-by: Shamil <ashm.tech@proton.me>
|
GH-140587 is a backport of this pull request to the 3.14 branch. |
|
GH-140588 is a backport of this pull request to the 3.13 branch. |
|
Summary
Remove unreachable
breakstatements afterreturnin switch cases.Details
Static analyzers flag these as dead code. The
breakstatements on lines992, 995, and 998 are never executed since
returnalready exits the function.Notes