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) {
|
FMT_FUNC void report_error(const char* message) {
|
||||||
#if FMT_USE_EXCEPTIONS
|
#if FMT_USE_EXCEPTIONS
|
||||||
|
// Use FMT_THROW instead of throw to avoid bogus unreachable code warnings
|
||||||
|
// from MSVC.
|
||||||
FMT_THROW(format_error(message));
|
FMT_THROW(format_error(message));
|
||||||
#else
|
#else
|
||||||
fputs(message, stderr);
|
fputs(message, stderr);
|
||||||
|
Reference in New Issue
Block a user