Skip to content

Commit

Permalink
Fix -Wmissing-noreturn warning (#4194)
Browse files Browse the repository at this point in the history
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'
  • Loading branch information
kongy authored Oct 10, 2024
1 parent 6bdc12a commit 4046f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down

0 comments on commit 4046f97

Please sign in to comment.