From 24909098fdb260da9ffd0ba733d3a540c8c61aec Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Tue, 11 Jul 2023 13:21:45 -0700 Subject: [PATCH] docs/misra: add Rule 9.3 Specify that {} is allowed for zero-initialization. Signed-off-by: Stefano Stabellini Reviewed-by: Luca Fancellu Acked-by: Jan Beulich --- docs/misra/rules.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index 72aa986bce..29a777938a 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -284,6 +284,11 @@ maintainers if you want to suggest a change. braces - + * - `Rule 9.3 `_ + - Required + - Arrays shall not be partially initialized + - {} is also allowed to specify explicit zero-initialization + * - `Rule 9.4 `_ - Required - An element of an object shall not be initialized more than once