insert else branch to avoid unreachable code warning#4130
insert else branch to avoid unreachable code warning#4130vitaut merged 1 commit intofmtlib:masterfrom
Conversation
at least MSC caused warning C4702: unreachable code
|
Thanks for the PR but could you provide a godbolt repro demonstrating the issue? |
|
Godbolt seems to currently have a problem using MSC and fmt: but here is my max reduced example: test.cpp #define FMT_HEADER_ONLY #include "fmt/format.h" int main() MSC (VS 17.11.1) test.cpp /out:test.exe Notice the string "42"! |
|
thanks |
at least MSC caused warning C4702: unreachable code