[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: MISRA: Compatible declarations for sort and bsearch
On 2023-11-28 09:56, Jan Beulich wrote: On 24.11.2023 10:40, Nicola Vetrini wrote:in xen/lib.h and xen/sort.h there are definitions of the functions bsearch and sort that have no prior declarations, and therefore are subject to a violation of MISRA C Rule 8.4. I'm wondering whether it would be preferred1. to put a declaration just before the definition, in lib.h and sort.h2. deviate these functions, as their signatures are well-known and somewhat standardizedSeeing that so far no-one else has replied to this: My take is "neither".It is the very nature of extern gnu_inline functions to work like this. This could well be a justification text: violations of required rules need either to be fixed or justified. -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |