Ignore:
Timestamp:
Oct 6, 2020, 5:39:44 AM (8 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e261df0
Parents:
e1a0e0c3
git-author:
Sebastian Huber <sebastian.huber@…> (10/06/20 05:39:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/10/20 12:00:37)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/nios2/include/rtems/score/cpu.h

    re1a0e0c3 rd7a48e1  
    291291  _CPU_Context_restore( (_the_context) );
    292292
    293 void _CPU_Fatal_halt( uint32_t _source, uint32_t _error )
    294   RTEMS_NO_RETURN;
     293RTEMS_NO_RETURN void _CPU_Fatal_halt( uint32_t _source, uint32_t _error );
    295294
    296295/**
     
    311310void _CPU_Context_switch( Context_Control *run, Context_Control *heir );
    312311
    313 void _CPU_Context_restore(
    314   Context_Control *new_context
    315 ) RTEMS_NO_RETURN;
     312RTEMS_NO_RETURN void _CPU_Context_restore( Context_Control *new_context );
    316313
    317314void _CPU_Exception_frame_print( const CPU_Exception_frame *frame );
Note: See TracChangeset for help on using the changeset viewer.