Skip to content

avoid MSC warning C4702: unreachable code#4822

Open
torsten48 wants to merge 1 commit into
fmtlib:mainfrom
torsten48:main
Open

avoid MSC warning C4702: unreachable code#4822
torsten48 wants to merge 1 commit into
fmtlib:mainfrom
torsten48:main

Conversation

@torsten48

Copy link
Copy Markdown
Contributor

if FMT_CONSTEXPR is resolved to constexpr MSC warns about dead code after 'return' instruction. Explicitly using 'else' in these cases avoids the warning.

if FMT_CONSTEXPR is resolved to constexpr MSC warns about dead code
after 'return' instruction. Explicitly using 'else' in these cases
avoids the warning.
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