[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] docs/misra/rules.rst: add Rule 17.1
Hi Stefano, On 09/12/2023 01:39, Stefano Stabellini wrote: Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx> --- Changes in v2: - separated 17.1 in its own patch - add a comment diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index 8a659d8d47..f29b4c3d9a 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -189,6 +189,12 @@ existing codebase are work-in-progress. - A switch-expression shall not have essentially Boolean type -+ * - `Rule 17.1 <https://gitlab.com/MISRA/MISRA-C/MISRA-C-2012/Example-Suite/-/blob/master/R_17_01.c>`_+ - Required + - The features of <stdarg.h> shall not be used + - It is understood that in some limited circumstances <stdarg.h> is + appropriate to use, such as the implementation of printk. The last bullet point is unclear to me. You don't define what "appropriate" means here. So who is going to decide? Also, how is this going to be deviated? Possibly the solution here is to remove the last bullet point and have a paragraph in deviations.rst explaining why we are using va_args. Cheers, -- Julien Grall
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |