tech-toolchain archive

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

Re: [PATCH] PR standards/44921: Add errno consts for robust mutexes



On Tue, 2020-03-03 at 09:38 -0800, Jason Thorpe wrote:
> > On Mar 3, 2020, at 9:35 AM, Michał Górny <mgorny%gentoo.org@localhost> wrote:
> > 
> > 
> > Thank you, I'll update it.  I wonder if we can catch missing entries
> > automatically there.
> 
> 1- Don't declare the size of the array.
> 
> 2- Use designated initializers for the array elements.
> 
> 3- CTASSERT that sizeof(nfsrv_v2errmap) == ELAST.
> 

Yeah, I'm experimenting with exactly that concept right now ;-).

-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: This is a digitally signed message part



Home | Main Index | Thread Index | Old Index