summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/m68k
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-06 07:39:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-10 14:00:37 +0200
commitd7a48e1b259316533a5c775e27934760e1fcd313 (patch)
treeba60f54f4647a8d866395450183ef2551bf9d46d /cpukit/score/cpu/m68k
parentgrlib: Add and use irqmp_has_timestamp() (diff)
downloadrtems-d7a48e1b259316533a5c775e27934760e1fcd313.tar.bz2
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 'cpukit/score/cpu/m68k')
-rw-r--r--cpukit/score/cpu/m68k/include/rtems/score/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/cpu/m68k/include/rtems/score/cpu.h b/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
index 777fbfeb30..5c1df94fc5 100644
--- a/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m68k/include/rtems/score/cpu.h
@@ -595,9 +595,9 @@ void _CPU_Context_switch(
Context_Control *heir
);
-void _CPU_Context_Restart_self(
+RTEMS_NO_RETURN void _CPU_Context_Restart_self(
Context_Control *the_context
-) RTEMS_NO_RETURN;
+);
/*
* _CPU_Context_save_fp