mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-21 18:20:04 +00:00
Fix -Wmissing-noreturn warning (#4194)
Fixes warning reported by top of trunk Clang: include/fmt/chrono.h:447:36: error: function 'throw_duration_error' could be declared with attribute 'noreturn'
This commit is contained in:
parent
6bdc12a199
commit
4046f97278
@ -444,7 +444,7 @@ struct is_same_arithmetic_type
|
||||
std::is_floating_point<Rep2>::value)> {
|
||||
};
|
||||
|
||||
inline void throw_duration_error() {
|
||||
FMT_NORETURN inline void throw_duration_error() {
|
||||
FMT_THROW(format_error("cannot format duration"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user