Fix for mismatched op-types on line 3937 on tasks.c

This commit is contained in:
Mark Hermeling 2024-05-21 11:24:40 -04:00
parent 9697f8c9b0
commit 510a5f04fc
2 changed files with 12 additions and 0 deletions

View file

@ -52,6 +52,15 @@ _Ref 8.6.1_
definitions or no definition. FreeRTOS hook functions are implemented in
the application and therefore, have no definition in the Kernel code.
#### Rule 10.4
MISRA C:2012 Rule 10.4
Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category
_Ref 10.4.1_
- This is a basic comparison of positive values only.
#### Rule 11.1
MISRA C:2012 Rule 11.1: Conversions shall not be performed between a pointer to
function and any other type.

View file

@ -3935,6 +3935,9 @@ void vTaskSuspendAll( void )
* processed. */
xReturn = 0;
}
/* MISRA Ref 10.4.1 [Mismatched Operand Types] */
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-104 */
/* codesonar[misra_c_2012_rule_10_4_violation] */
else if( uxHigherPriorityReadyTasks != pdFALSE )
{
/* There are tasks in the Ready state that have a priority above the