File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ static void exampleTask( void * parameters );
49
49
50
50
/*-----------------------------------------------------------*/
51
51
52
- static void exampleTask ( void * parameters )
52
+ static _Noreturn void exampleTask ( void * parameters )
53
53
{
54
54
/* Unused parameters. */
55
55
( void ) parameters ;
@@ -62,7 +62,7 @@ static void exampleTask( void * parameters )
62
62
}
63
63
/*-----------------------------------------------------------*/
64
64
65
- void main ( void )
65
+ int main ( void )
66
66
{
67
67
static StaticTask_t exampleTaskTCB ;
68
68
static StackType_t exampleTaskStack [ configMINIMAL_STACK_SIZE ];
@@ -84,6 +84,8 @@ void main( void )
84
84
{
85
85
/* Should not reach here. */
86
86
}
87
+
88
+ return 0 ;
87
89
}
88
90
/*-----------------------------------------------------------*/
89
91
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ extern void vPortYield( void );
105
105
#define portYIELD () vPortYield()
106
106
107
107
/* Task function macros as described on the FreeRTOS.org WEB site. */
108
- #define portTASK_FUNCTION_PROTO ( vFunction , pvParameters ) void vFunction( void * pvParameters )
108
+ #define portTASK_FUNCTION_PROTO ( vFunction , pvParameters ) __attribute__( ( noreturn ) ) void vFunction( void * pvParameters )
109
109
#define portTASK_FUNCTION ( vFunction , pvParameters ) void vFunction( void * pvParameters )
110
110
111
111
#if ( configNUMBER_OF_CORES > 1 )
You can’t perform that action at this time.
0 commit comments