This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 04/10] htl: Make __PTHREAD_ONCE_INIT more flexible


Adhemerval Zanella, le lun. 20 janv. 2020 15:01:13 -0300, a ecrit:
> > -	(struct __pthread_once) { 0, __PTHREAD_SPIN_LOCK_INITIALIZER }
> > +	0, __PTHREAD_SPIN_LOCK_INITIALIZER

> > -#define PTHREAD_ONCE_INIT __PTHREAD_ONCE_INIT
> > +#define PTHREAD_ONCE_INIT (struct __pthread_once) { __PTHREAD_ONCE_INIT }
> 
> Ok, although I think the cast is superfluous.

I think so as well, but preferred to keep it for now, so that this
series is a no-op in that regard :)

Samuel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]