From c8f77eb4b5f20403a44badafbc9bf7426897714a Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Thu, 10 Oct 2024 19:49:19 +0900 Subject: [PATCH] Fix -Wmissing-noreturn warning 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")); }