From 83e7f2a641a5fdd5b6262b54ff9ddd954465d96b Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 15 Apr 2023 22:50:47 +0200 Subject: [PATCH] Use of new M_ATTR_NO_RETURN attribute --- m-try.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/m-try.h b/m-try.h index e992da5e..fb871c9c 100644 --- a/m-try.h +++ b/m-try.h @@ -320,8 +320,7 @@ m_try_init(m_try_t state) M_LIKELY ((m_try_init(s), setjmp(((s)->data.buf)) != 1)) // Throw the given exception -// TODO: attribute no return -static inline void +static inline M_ATTR_NO_RETURN void m_throw(const struct m_exception_s *exception) { // Analyze the error list to see what has been registered @@ -353,7 +352,7 @@ m_throw(const struct m_exception_s *exception) } // Rethrow the error -static inline void +static inline M_ATTR_NO_RETURN void m_rethrow(void) { M_ASSERT(m_global_error_list != NULL);