|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH 4/6] x86emul: address violations of MISRA C Rule 20.7
On 2024-06-12 12:36, Jan Beulich wrote: On 12.06.2024 11:52, Nicola Vetrini wrote:On 2024-06-12 11:19, Jan Beulich wrote:On 11.06.2024 17:53, Nicola Vetrini wrote:MISRA C Rule 20.7 states: "Expressions resulting from the expansionof macro parameters shall be enclosed in parentheses". Therefore, somemacro definitions should gain additional parentheses to ensure that allcurrent and future users will be safe with respect to expansions thatcan possibly alter the semantics of the passed-in macro parameter. No functional change. Signed-off-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx> --- These local helpers could in principle be deviated, but the readability and functionality are essentially unchanged by complying with the rule, so I decided to modify the macro definition as the preferred option.Well, yes, but ... Might be reasonable. I'll think about it for v2 -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |