#4122 closed enhancement (fixed)

Change RTEMS_NO_RETURN to use C11 and C++11 standard means

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 6.1
Component: rtems Version: 6
Severity: normal Keywords: qualification
Cc: Blocked By:
Blocking:

Description

C11 has a _Noreturn keyword and C++11 has a noreturn? attribute. The standards are a bit less flexible than the GNU attribute with respect to the position of the attribute.

Change History (2)

comment:1 Changed on 10/10/20 at 12:01:39 by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In d7a48e1/rtems:

rtems: Improve RTEMS_NO_RETURN attribute

Provide RTEMS_NO_RETURN also in case RTEMS_DEBUG is defined to prevent errors
like this:

error: no return statement in function returning non-void [-Werror=return-type]

Use C11 and C++11 standard means to declare a no-return function.

Close #4122.

comment:2 Changed on 06/23/21 at 07:07:55 by Sebastian Huber

Keywords: qualification added
Note: See TracTickets for help on using tickets.