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:
authorchinglee-iot <61685396+chinglee-iot@users.noreply.github.com>2023-12-07 13:15:19 +0300
committerGitHub <noreply@github.com>2023-12-07 13:15:19 +0300
commit877484cd7e6422e7bd7a4df4029afe8bca8b81e5 (patch)
tree229d20504780c1384da3c65b8708b1f8f2f416b2 /MISRA.md
parent15af8e072d7299d92a38a2f634c3bf3f095d3a32 (diff)
Fix MISRA C 2012 Rule 11.1 deviations (#856)
* Update callback function prototype to align with definition * Suppress unused function pointer parameter --------- Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> Co-authored-by: Ubuntu <ubuntu@ip-172-31-34-245.ap-northeast-1.compute.internal> Co-authored-by: GitHub Action <action@github.com> Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
Diffstat (limited to 'MISRA.md')
-rw-r--r--MISRA.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/MISRA.md b/MISRA.md
index 9296cb961..1cca337ff 100644
--- a/MISRA.md
+++ b/MISRA.md
@@ -34,7 +34,6 @@ _Ref 8.4.2_
kernel unit tests. It is not meant to be directly accessed by the application
and therefore, not declared in a header file.
-
#### Rule 8.6
MISRA C:2012 Rule 8.6: An identifier with external linkage shall have exactly
@@ -45,6 +44,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 11.1
+MISRA C:2012 Rule 11.1: Conversions shall not be performed between a pointer to
+function and any other type.
+
+_Ref 11.1.1_
+ - The pointer to function is casted into void to avoid unused parameter
+ compiler warning when Stream Buffer's Tx and Rx Completed callback feature is
+ not used.
+
#### Rule 11.3
MISRA C:2012 Rule 11.3: A cast shall not be performed between a pointer to