Use of new M_ATTR_NO_RETURN attribute

This commit is contained in:
Patrick Pelissier committed 2023-04-15 22:50:47 +02:00
1 parent 6580601969
commit 83e7f2a641
1 file changed
+2 -3
+2 -3
View File
@@ -320,8 +320,7 @@ m_try_init(m_try_t state)
M_LIKELY ((m_try_init(s), setjmp(((s)->data.buf)) != 1)) M_LIKELY ((m_try_init(s), setjmp(((s)->data.buf)) != 1))
// Throw the given exception // Throw the given exception
// TODO: attribute no return static inline M_ATTR_NO_RETURN void
static inline void
m_throw(const struct m_exception_s *exception) m_throw(const struct m_exception_s *exception)
{ {
// Analyze the error list to see what has been registered // 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 // Rethrow the error
static inline void static inline M_ATTR_NO_RETURN void
m_rethrow(void) m_rethrow(void)
{ {
M_ASSERT(m_global_error_list != NULL); M_ASSERT(m_global_error_list != NULL);