[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC PATCH 0/4] Add missing default labels to switch statements

On Tue, 26 Feb 2019, Jan Beulich wrote:
> > So, we'll end up having lots of macros then which is obviously
> > not good. That said, I hope we can work out some common approach
> > not only to this issue, but how we deal with such in general.
> I guess then I have to ask for giving a complete picture of what
> other code uglifications are going to be proposed. If, to be MISRA-
> compliant, we have to turn all of our code into an unreadable
> mess, than I'm afraid I have to question whether we really want
> to go that route. We then may be better off stopping the whole
> exercise now, rather than after having done several initial steps
> already.

Hi Jan,

I don't think there is a simple answer to your point. But the best way
to get an idea is to give a look at MISRA-C [1]. It's less than 50GBP, I
am hoping Lars will be able to sort it out for you. The purpose of this
work is also to provide the context for the upcoming f2f discussions.

What I am about to write needs to be verified (hopefully we'll find the
answer during the workshop) but my understanding is that even just a few
steps toward compliance are better than nothing.



[1] https://www.misra.org.uk/shop/buy_now.php

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.