File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,15 @@ _Ref 8.6.1_
52
52
definitions or no definition. FreeRTOS hook functions are implemented in
53
53
the application and therefore, have no definition in the Kernel code.
54
54
55
+ #### Rule 10.4
56
+
57
+ MISRA C:2012 Rule 10.4
58
+
59
+ Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category
60
+
61
+ _ Ref 10.4.1_
62
+ - This is a basic comparison of positive values only.
63
+
55
64
#### Rule 11.1
56
65
MISRA C:2012 Rule 11.1: Conversions shall not be performed between a pointer to
57
66
function and any other type.
Original file line number Diff line number Diff line change @@ -3935,6 +3935,9 @@ void vTaskSuspendAll( void )
3935
3935
* processed. */
3936
3936
xReturn = 0 ;
3937
3937
}
3938
+ /* MISRA Ref 10.4.1 [Mismatched Operand Types] */
3939
+ /* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-104 */
3940
+ /* codesonar[misra_c_2012_rule_10_4_violation] */
3938
3941
else if ( uxHigherPriorityReadyTasks != pdFALSE )
3939
3942
{
3940
3943
/* There are tasks in the Ready state that have a priority above the
You can’t perform that action at this time.
0 commit comments