[PATCH 04/10] htl: Make __PTHREAD_ONCE_INIT more flexible
Samuel Thibault
samuel.thibault@ens-lyon.org
Mon Jan 20 18:31:00 GMT 2020
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
More information about the Libc-alpha
mailing list