|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v2] arm64/vfp: address MISRA C:2012 Dir 4.3
Hi Nicola, On 24/08/2023 12:11, Nicola Vetrini wrote: On 24/08/2023 10:01, Michal Orzel wrote:Hi Nicola, On 24/08/2023 09:37, Nicola Vetrini wrote: It is telling the reader that the function is not supposed to modify the 'fpregs'. A compiler will also be able to throw an error if a developper broke this assumption. I have been pushing quite a lot recently to add 'const' when a pointer is not supposed to be modified. And before someone mention it, I know that 'const' is not perfect in C as if a field points to another area, that area would not be const (unless the definition of the field contains const). But that's better than nothing :). Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |