Skip to content

fix(msvc): silence C4702 unreachable warnings in value parser (#307) - #308

Open
soniafergusonship wants to merge 1 commit into
marzer:masterfrom
soniafergusonship:fix/msvc-unreachable-parser-307
Open

fix(msvc): silence C4702 unreachable warnings in value parser (#307)#308
soniafergusonship wants to merge 1 commit into
marzer:masterfrom
soniafergusonship:fix/msvc-unreachable-parser-307

Conversation

@soniafergusonship

Copy link
Copy Markdown

Fixes #307

  • Replace TOML_ASSERT_ASSUME(char_count >= 2u) with an explicit runtime check so MSVC /W4 no longer treats the following parser logic as unreachable under __assume.
  • Suppress MSVC C4702 around the trait-bitmask switch, which produces false-positive unreachable-code warnings on /W4.

…#307)

Signed-off-by: soniafergusonship <soniafergusonship@users.noreply.github.com>
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.

MSVC Unreachable Code Warning on /W4

1 participant