From 4046f9727892a9a1baeef00cb20211ee062efa16 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Fri, 11 Oct 2024 00:59:56 +0900 Subject: [PATCH] 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' --- include/fmt/chrono.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); }