svn commit: r243134 - head/sys/sys

Konstantin Belousov kostikbel at gmail.com
Fri Nov 16 16:05:44 UTC 2012


On Fri, Nov 16, 2012 at 08:02:39AM -0800, mdf at FreeBSD.org wrote:
> On Thu, Nov 15, 2012 at 10:25 PM, Konstantin Belousov <kib at freebsd.org> wrote:
> > Author: kib
> > Date: Fri Nov 16 06:25:20 2012
> > New Revision: 243134
> > URL: http://svnweb.freebsd.org/changeset/base/243134
> >
> > Log:
> >   Alphabetically reorder the forward-declarations of the structures.
> >   Add the declaration for enum idtype, to be used later.
> 
> Forward declarations of enums isn't an ISO C feature, but a gcc
> extension.  While the kernel uses many gcc extensions, it hides most
> under a #define so unsupported compilers can continue along.  This
> unsupported feature can't be hidden.
> 
> Does the forward declaration prevent another warning?

It allows to prevent the namespace pollution from sys/wait.h idtype_t, needed
due to the kern_wait6() declaration.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20121116/bceb6732/attachment.sig>


More information about the svn-src-all mailing list