mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-28 13:19:48 +01:00
Enable [[noreturn]] some.
This commit is contained in:
committed by
Victor Zverovich
parent
2808395481
commit
aeb5ad3ce1
@@ -2621,7 +2621,7 @@ template <typename Range> class basic_writer {
|
||||
num_writer{abs_value, size, sep});
|
||||
}
|
||||
|
||||
void on_error() { FMT_THROW(format_error("invalid type specifier")); }
|
||||
FMT_NORETURN void on_error() { FMT_THROW(format_error("invalid type specifier")); }
|
||||
};
|
||||
|
||||
// Writes a formatted integer.
|
||||
@@ -2858,7 +2858,7 @@ struct float_spec_handler {
|
||||
if (type == 'A') upper = true;
|
||||
}
|
||||
|
||||
void on_error() { FMT_THROW(format_error("invalid type specifier")); }
|
||||
FMT_NORETURN void on_error() { FMT_THROW(format_error("invalid type specifier")); }
|
||||
};
|
||||
|
||||
template <typename Range>
|
||||
|
||||
Reference in New Issue
Block a user