Skip to content

Fix [-Wunreachable-code-return] warning in string_view.c - #479

Open
tsepez wants to merge 1 commit into
google:mainfrom
tsepez:unreachable-return
Open

tsepez wants to merge 1 commit into
google:mainfrom
tsepez:unreachable-return

Conversation

@tsepez

@tsepez tsepez commented Nov 25, 2026

Copy link
Copy Markdown

The loop in CpuFeatures_StringView_HasWord() never breaks, so the final return is not reachable.

-- also avoid else-after-return.

The loop in CpuFeatures_StringView_HasWord() never breaks, so the final
return is not reachable.

-- also avoid else-after-return.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant