forked from Imagelibrary/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.
This commit is contained in:
@@ -396,7 +396,7 @@ extern unsigned int leon3_timer_prescaler;
|
||||
/* GRLIB extended IRQ controller register */
|
||||
void leon3_ext_irq_init(void);
|
||||
|
||||
void leon3_power_down_loop(void) RTEMS_NO_RETURN;
|
||||
RTEMS_NO_RETURN void leon3_power_down_loop(void);
|
||||
|
||||
static inline uint32_t leon3_get_cpu_count(
|
||||
volatile struct irqmp_regs *irqmp
|
||||
|
||||
Reference in New Issue
Block a user