Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2012 18:05:39 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        mdf@FreeBSD.org
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r243134 - head/sys/sys
Message-ID:  <20121116160539.GN73505@kib.kiev.ua>
In-Reply-To: <CAMBSHm_xwP5S8ERXYL%2Bsw%2BBAfgTAss9i0EGoX5%2B1Hy40PhfXbg@mail.gmail.com>
References:  <201211160625.qAG6PLd2032062@svn.freebsd.org> <CAMBSHm_xwP5S8ERXYL%2Bsw%2BBAfgTAss9i0EGoX5%2B1Hy40PhfXbg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--sG3ZcHdzWW76U2Qm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 16, 2012 at 08:02:39AM -0800, mdf@FreeBSD.org wrote:
> On Thu, Nov 15, 2012 at 10:25 PM, Konstantin Belousov <kib@freebsd.org> w=
rote:
> > 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.
>=20
> 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.
>=20
> Does the forward declaration prevent another warning?

It allows to prevent the namespace pollution from sys/wait.h idtype_t, need=
ed
due to the kern_wait6() declaration.

--sG3ZcHdzWW76U2Qm
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlCmZFMACgkQC3+MBN1Mb4hItACfYuqhdfALdxSbitgA0I9NDXFn
5EYAnA+am6ZfjA6AAg50rYDQoNzMlNw4
=LJWv
-----END PGP SIGNATURE-----

--sG3ZcHdzWW76U2Qm--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121116160539.GN73505>