From d7a48e1b259316533a5c775e27934760e1fcd313 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 6 Oct 2020 07:39:44 +0200 Subject: 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. --- bsps/include/bsp/bootcard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsps/include/bsp/bootcard.h') diff --git a/bsps/include/bsp/bootcard.h b/bsps/include/bsp/bootcard.h index e3eed8da46..0277dd8439 100644 --- a/bsps/include/bsp/bootcard.h +++ b/bsps/include/bsp/bootcard.h @@ -68,7 +68,7 @@ void bsp_reset(void); * This style of initialization ensures that the C++ global constructors are * executed after RTEMS is initialized. */ -void boot_card(const char *cmdline) RTEMS_NO_RETURN; +RTEMS_NO_RETURN void boot_card(const char *cmdline); struct Per_CPU_Control; -- cgit v1.2.3