On Fri, Nov 16, 2012 at 08:02:39AM -0800, [email protected] wrote: > On Thu, Nov 15, 2012 at 10:25 PM, Konstantin Belousov <[email protected]> > 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.
pgpEdzEkNDjlO.pgp
Description: PGP signature
