mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-08 01:36:53 +08:00
Clarify use of FMT_THROW in a comment
This commit is contained in:
parent
1d066890c7
commit
fc1b0f3486
@ -134,6 +134,8 @@ FMT_FUNC auto write_loc(appender out, loc_value value,
|
||||
|
||||
FMT_FUNC void report_error(const char* message) {
|
||||
#if FMT_USE_EXCEPTIONS
|
||||
// Use FMT_THROW instead of throw to avoid bogus unreachable code warnings
|
||||
// from MSVC.
|
||||
FMT_THROW(format_error(message));
|
||||
#else
|
||||
fputs(message, stderr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user