Skip to content

Commit

Permalink
docs/misra: accept 11.7 and 11.8
Browse files Browse the repository at this point in the history
As per the last MISRA C group discussion, let's accept 11.7 (for which
we have no violations) and 11.8.

Signed-off-by: Stefano Stabellini <[email protected]>
Acked-by: Jan Beulich <[email protected]>
  • Loading branch information
sstabellini committed Sep 15, 2023
1 parent 6aa25c3 commit b5a6010
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/misra/rules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,16 @@ maintainers if you want to suggest a change.

CFLAGS="-Warith-conversion -Wno-error=arith-conversion" make -C xen

* - `Rule 11.7 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_11_07.c>`_
- Required
- A cast shall not be performed between pointer to object and a noninteger arithmetic type
-

* - `Rule 11.8 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_11_08.c>`_
- Required
- A cast shall not remove any const or volatile qualification from the type pointed to by a pointer
-

* - `Rule 12.5 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_12_05.c>`_
- Mandatory
- The sizeof operator shall not have an operand which is a function
Expand Down

0 comments on commit b5a6010

Please sign in to comment.