|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] x86: Address MISRA Rule 13.6
On 02/04/24 17:54, Andrew Cooper wrote: On 02/04/2024 4:46 pm, Jan Beulich wrote:On 02.04.2024 17:43, Andrew Cooper wrote:MISRA Rule 13.6 doesn't like having an expression in a sizeof() which potentially has side effects. Address several violations by pulling the expression out into a local variable. No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> with one caveat: The local variable is a non-callable entity; "clashes" between function-like macros and non-callable entities will be deviated (as agreed during MISRA meetings). -- Federico Serafini, M.Sc. Software Engineer, BUGSENG (http://bugseng.com)
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |