svn commit: r348419 - in head: crypto/heimdal/lib/ipc share/man/man4 sys/compat/linux sys/kern sys/sys usr.sbin/mountd
Conrad Meyer
cem at freebsd.org
Wed Jun 5 02:21:24 UTC 2019
On Tue, Jun 4, 2019 at 6:31 PM Bruce Evans <brde at optusnet.com.au> wrote:
> On Tue, 4 Jun 2019, Gleb Smirnoff wrote:
> > Why don't use C99 in 2019 instead of preprocessor define? Should be
> >
> > union {
> > void *_cr_unused1; /* compatibility with old ucred */
> > pid_t cr_pid;
> > };
>
> Anonymous unions are a gnu89 extension. Only broken C99 compilers like
> clang -std=c99 accept them.
>
> [Pedantic tangent elided.]
Gleb simply misspoke. Anonymous unions are part of the standard C11,
rather than C99, language; §6.7.2.1, (13).
The point stands; it's 2019 and the feature has been part of the
working language long prior to its standardization in 2011.
Cheers,
Conrad
More information about the svn-src-all
mailing list