forked from fmtlib/fmt
Clarify use of FMT_THROW in a comment
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user