diff --git a/examples/cmake_example/main.c b/examples/cmake_example/main.c index 05796c8a6..b7ced4dd9 100644 --- a/examples/cmake_example/main.c +++ b/examples/cmake_example/main.c @@ -45,11 +45,11 @@ /*-----------------------------------------------------------*/ -static _Noreturn void exampleTask( void * parameters ); +static void exampleTask( void * parameters ) __attribute__( ( noreturn ) ); /*-----------------------------------------------------------*/ -static _Noreturn void exampleTask( void * parameters ) +static void exampleTask( void * parameters ) { /* Unused parameters. */ ( void ) parameters; diff --git a/portable/template/portmacro.h b/portable/template/portmacro.h index 6cb084e6f..4a4a5876c 100644 --- a/portable/template/portmacro.h +++ b/portable/template/portmacro.h @@ -105,7 +105,7 @@ extern void vPortYield( void ); #define portYIELD() vPortYield() /* Task function macros as described on the FreeRTOS.org WEB site. */ -#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) __attribute__( ( noreturn ) ) void vFunction( void * pvParameters ) +#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void * pvParameters ) __attribute__( ( noreturn ) ) #define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters ) #if ( configNUMBER_OF_CORES > 1 )