forked from fmtlib/fmt
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:
@@ -444,7 +444,7 @@ struct is_same_arithmetic_type
|
|||||||
std::is_floating_point<Rep2>::value)> {
|
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"));
|
FMT_THROW(format_error("cannot format duration"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user