Skip to content

Remove unreachable break after LOG(FATAL) in LogOnce.cpp (#59520) - #59520

Closed
r-barnes wants to merge 1 commit into
mainfrom
export-D126709681
Closed

r-barnes wants to merge 1 commit into
mainfrom
export-D126709681

Conversation

@r-barnes

@r-barnes r-barnes commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Clang reports -Wunreachable-code-break here: the break follows LOG(FATAL), which never returns, so control can never reach the break. Removing it silences the warning and does not change behavior. It ends the last label of the switch, so it is redundant anyway.

Changelog: [Internal]

Reviewed By: dtolnay

Differential Revision: D126709681

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 26, 2026
@meta-codesync

meta-codesync Bot commented Oct 26, 2026

Copy link
Copy Markdown

@r-barnes has exported this pull request. If you are a Meta employee, you can view the originating Diff in D126709681.

Summary:
Pull Request resolved: #59520

Clang reports `-Wunreachable-code-break` here: the `break` follows `LOG(FATAL)`, which never returns, so control can never reach the `break`. Removing it silences the warning and does not change behavior. It ends the last label of the switch, so it is redundant anyway.

Changelog: [Internal]

Reviewed By: dtolnay

Differential Revision: D126709681
@meta-codesync meta-codesync Bot changed the title Remove unreachable break after LOG(FATAL) in LogOnce.cpp Remove unreachable break after LOG(FATAL) in LogOnce.cpp (#59520) Oct 26, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @r-barnes in 4a21e37

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 26, 2026
@meta-codesync meta-codesync Bot closed this in 0c7d87f Oct 27, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @r-barnes in 0c7d87f

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants