Re: MISRA
Abramo Bagnara
Il 13/12/21 04:37, Nicolas Pitre ha scritto:
On Sun, 12 Dec 2021, Abramo Bagnara wrote:Unless we find a good place for this macro I'd be forced to leave double cast. If it is preferred I can add a line of documentation before each occurence.Who in its right mind will believe that sprinkling typecasts aroundIn the specific, double casts are needed in two situations: I'd like very much you take a look toAnd a real kicker is this change: https://github.com/Abramo-Bagnara/zephyr/commit/87a42d4185828fb1e651604b8ee878063fb6b08a so to be sure I have intercepted correctly the community expectations. Of course I cannot decide if the community wanted API is to return a bool or to possibly return a nonzero error code, but if the intention is the latter the commit accomplish that uniformingly and keeps integer and boolean separate. -- Abramo Bagnara BUGSENG srl - http://bugseng.com mailto:abramo.bagnara@... |
|