Skip to content

Commit 71d86f9

Browse files
kar-rahul-awschinglee-iotaggarg
authored
Fix MISRA_C_2012 rule 17.7 violation (#848)
* Assign return value of xPortStartScheduler API to a variable * Add void datatype --------- Co-authored-by: chinglee-iot <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
1 parent edce1e9 commit 71d86f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3727,7 +3727,10 @@ void vTaskStartScheduler( void )
37273727

37283728
/* Setting up the timer tick is hardware specific and thus in the
37293729
* portable interface. */
3730-
xPortStartScheduler();
3730+
3731+
/* The return value for xPortStartScheduler is not required
3732+
* hence using a void datatype. */
3733+
( void ) xPortStartScheduler();
37313734

37323735
/* In most cases, xPortStartScheduler() will not return. If it
37333736
* returns pdTRUE then there was not enough heap memory available

0 commit comments

Comments
 (0)