mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-11 13:54:16 -04:00
Add Noreturn attribute in template port for static analysis (#1060)
* Add _Noreturn attribute in the template function to fix MISRA 17.11 advisory warnings * Add _Noreturn attribute in function declaration * Code review suggestions
This commit is contained in:
parent
c9e3949f02
commit
0801c91bc6
2 changed files with 5 additions and 3 deletions
|
@ -45,7 +45,7 @@
|
|||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void exampleTask( void * parameters );
|
||||
static void exampleTask( void * parameters ) __attribute__( ( noreturn ) );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -62,7 +62,7 @@ static void exampleTask( void * parameters )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void main( void )
|
||||
int main( void )
|
||||
{
|
||||
static StaticTask_t exampleTaskTCB;
|
||||
static StackType_t exampleTaskStack[ configMINIMAL_STACK_SIZE ];
|
||||
|
@ -84,6 +84,8 @@ void main( void )
|
|||
{
|
||||
/* Should not reach here. */
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue