mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Workaround bogus unreachable warnings in MSVC
This commit is contained in:
parent
a4969ebe06
commit
ccd70f59ee
@ -143,7 +143,8 @@
|
|||||||
# endif
|
# endif
|
||||||
#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]]
|
# define FMT_NORETURN [[noreturn]]
|
||||||
#else
|
#else
|
||||||
# define FMT_NORETURN
|
# define FMT_NORETURN
|
||||||
|
Loading…
Reference in New Issue
Block a user