diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index cc08ff8199b0..abf3671e5b59 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -444,7 +444,7 @@ struct is_same_arithmetic_type std::is_floating_point::value)> { }; -inline void throw_duration_error() { +FMT_NORETURN inline void throw_duration_error() { FMT_THROW(format_error("cannot format duration")); }