mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
docs/misra: add Rule 9.3
Specify that {} is allowed for zero-initialization.
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
0a834e953b
commit
24909098fd
1 file changed
+5
@@ -284,6 +284,11 @@ maintainers if you want to suggest a change.
|
||||
braces
|
||||
-
|
||||
|
||||
* - `Rule 9.3 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_09_03.c>`_
|
||||
- Required
|
||||
- Arrays shall not be partially initialized
|
||||
- {} is also allowed to specify explicit zero-initialization
|
||||
|
||||
* - `Rule 9.4 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_09_04.c>`_
|
||||
- Required
|
||||
- An element of an object shall not be initialized more than once
|
||||
|
||||