Date: Tue, 4 Jun 2019 19:21:04 -0700 From: Conrad Meyer <cem@freebsd.org> To: Bruce Evans <brde@optusnet.com.au> Cc: Gleb Smirnoff <glebius@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org> Subject: Re: svn commit: r348419 - in head: crypto/heimdal/lib/ipc share/man/man4 sys/compat/linux sys/kern sys/sys usr.sbin/mountd Message-ID: <CAG6CVpU-M-Lh3h2UHhPM4feGLBbxsvzDw93%2BC0RXdUD8tptjGQ@mail.gmail.com> In-Reply-To: <20190605095458.S1083@besplex.bde.org> References: <201905301424.x4UEORXr098755@repo.freebsd.org> <20190604225128.GL21836@FreeBSD.org> <20190605095458.S1083@besplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 4, 2019 at 6:31 PM Bruce Evans <brde@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=3Dc99 accept them. > > [Pedantic tangent elided.] Gleb simply misspoke. Anonymous unions are part of the standard C11, rather than C99, language; =C2=A76.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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpU-M-Lh3h2UHhPM4feGLBbxsvzDw93%2BC0RXdUD8tptjGQ>