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:
Yi Kong
2024-10-10 08:59:56 -07:00
committed by GitHub
parent 6bdc12a199
commit 4046f97278
+1 -1
View File
@@ -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"));
}