MSVC: warning C4702: unreachable code
seanmiddleditch opened this issue · 0 comments
seanmiddleditch commented
The following error arises when compiling with MSVC (17.5.0 Preview 2.0) with /W4
:
...\dragonbox-src\include\dragonbox\dragonbox.h(662): warning C4702: unreachable code
The line in for the warning is:
dragonbox/include/dragonbox/dragonbox.h
Line 662 in 4b19578
However, that isn't the real problem. The warning is actually triggered by the whole second if constexpr
block at:
dragonbox/include/dragonbox/dragonbox.h
Line 657 in 4b19578
Changing that second if constexpr
to else if constexpr
resolves the warning.