[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH v4] xen/include: avoid using a compiler extension for BUILD_BUG_ON_ZERO.
On 24/06/23 09:32, Jan Beulich wrote: On 24.06.2023 09:11, Julien Grall wrote:On 23/06/2023 18:16, Jan Beulich wrote:I'm not happy to, with the continued use of the two U suffixes. It may seem minor, but to me it feels like setting a bad precedent.I wasn't able to find the reasoning behind your objections in the archive. I would like to understand your concern before providing any ack. Would you be able to give a pointer?I appreciate the Misra-invoked desire to add U suffixes where otherwise (visual) ambiguities may exist. But on numbers like 0 or 1, and when use of e.g. resulting #define-s doesn't require the constants to be of unsigned type, I view such suffixes purely as clutter. In the specific case I might go as far as questioning why, when U is added, L isn't added as well, to "support" the size_t result aspect also from the "width of type" perspective. Jan I will purge the 'U's in a v5 (and correct the wrong commit message as well), since they are not necessary for this patch. Regards, -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |