Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FreeRTOS/FreeRTOS-Kernel.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>2023-12-06 14:03:18 +0300
committerGitHub <noreply@github.com>2023-12-06 14:03:18 +0300
commit71d86f9a6e9c46e678aa51ca3fd746b1d0859636 (patch)
tree93d9cb0c1a8413bb7660c6bc47232b60028165c5
parentedce1e94b3ab06000e99727897f51a5845bbba16 (diff)
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 <61685396+chinglee-iot@users.noreply.github.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
-rw-r--r--tasks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tasks.c b/tasks.c
index 8f691d117..f5d031227 100644
--- a/tasks.c
+++ b/tasks.c
@@ -3727,7 +3727,10 @@ void vTaskStartScheduler( void )
/* Setting up the timer tick is hardware specific and thus in the
* portable interface. */
- xPortStartScheduler();
+
+ /* The return value for xPortStartScheduler is not required
+ * hence using a void datatype. */
+ ( void ) xPortStartScheduler();
/* In most cases, xPortStartScheduler() will not return. If it
* returns pdTRUE then there was not enough heap memory available