mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Workaround bogus unreachable warnings in MSVC
This commit is contained in:
parent
a4969ebe06
commit
ccd70f59ee
@ -143,7 +143,8 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn)
|
||||
// [[noreturn]] is disabled on MSVC because of bogus unreachable code warnings.
|
||||
#if FMT_EXCEPTIONS && FMT_HAS_CPP_ATTRIBUTE(noreturn) && !FMT_MSC_VER
|
||||
# define FMT_NORETURN [[noreturn]]
|
||||
#else
|
||||
# define FMT_NORETURN
|
||||
|
Loading…
Reference in New Issue
Block a user