[PATCH 2/2] Use C11 _Alignas on scratch_buffer internal buffer

Florian Weimer fweimer@redhat.com
Tue Sep 19 18:57:00 GMT 2017


On 09/19/2017 07:34 PM, Adhemerval Zanella wrote:
> -  max_align_t __space[(1023 + sizeof (max_align_t)) / sizeof (max_align_t)];
> +  union { max_align_t __align; char __space[1024]; };

Does gnulib require compiler support for anonymous unions?

(BTW, I view this kind of work largely as a distraction, which is why 
I'm against keeping things in sync with gnulib.)

Thanks,
Florian



More information about the Libc-alpha mailing list