Skip to content

Commit

Permalink
Add FMT_NORETURN to assert_fail prototype. (#1569)
Browse files Browse the repository at this point in the history
When building with -Werror,-Wmissing-noreturn clang identifies that assert_fail could be declared with the 'noreturn' attribute.
  • Loading branch information
refnum authored Mar 1, 2020
1 parent bed134a commit 6ccb2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ namespace internal {
// A workaround for gcc 4.8 to make void_t work in a SFINAE context.
template <typename... Ts> struct void_t_impl { using type = void; };

FMT_API void assert_fail(const char* file, int line, const char* message);
FMT_NORETURN FMT_API void assert_fail(const char* file, int line, const char* message);

#ifndef FMT_ASSERT
# ifdef NDEBUG
Expand Down

0 comments on commit 6ccb2e2

Please sign in to comment.