diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-10-06 07:39:44 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-10-10 14:00:37 +0200 |
commit | d7a48e1b259316533a5c775e27934760e1fcd313 (patch) | |
tree | ba60f54f4647a8d866395450183ef2551bf9d46d /bsps/sparc/leon3/include/leon.h | |
parent | e1a0e0c30829a0da4174085ee5109fba337dba11 (diff) |
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.
Diffstat (limited to 'bsps/sparc/leon3/include/leon.h')
-rw-r--r-- | bsps/sparc/leon3/include/leon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/sparc/leon3/include/leon.h b/bsps/sparc/leon3/include/leon.h index d25825c8e8..f70fae5709 100644 --- a/bsps/sparc/leon3/include/leon.h +++ b/bsps/sparc/leon3/include/leon.h @@ -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 |