mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-03 21:03:51 -04:00
Fix MISRA_C_2012 rule 8.4 violation (#844)
Fix MISRA_C_2012 rule 8.4 violation
This commit is contained in:
parent
22eb827b3d
commit
d1a0202125
3 changed files with 16 additions and 8 deletions
15
MISRA.md
15
MISRA.md
|
@ -24,14 +24,15 @@ MISRA C:2012 Rule 8.4: A compatible declaration shall be visible when an
|
|||
object or function with external linkage is defined.
|
||||
|
||||
_Ref 8.4.1_
|
||||
- pxCurrentTCB(s) is defined with external linkage but it is only referenced
|
||||
from the assembly code in the port files. Therefore, adding a declaration in
|
||||
header file is not useful as the assembly code will still need to declare it
|
||||
separately.
|
||||
|
||||
- This rule requires that a compatible declaration is made available
|
||||
in a header file when an object with external linkage is defined.
|
||||
pxCurrentTCB(s) is defined with external linkage but it is only
|
||||
referenced from the assembly code in the port files. Therefore, adding
|
||||
a declaration in header file is not useful as the assembly code will
|
||||
still need to declare it separately.
|
||||
|
||||
_Ref 8.4.2_
|
||||
- xQueueRegistry is defined with external linkage because it is accessed by the
|
||||
kernel unit tests. It is not meant to be directly accessed by the application
|
||||
and therefore, not declared in a header file.
|
||||
|
||||
#### Rule 11.3
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue