Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2020 09:19:19 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Rares Aioanei <bsdlisten@gmail.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Clean up GNU-isms in base?
Message-ID:  <20200116091919.GA21259@spindle.one-eyed-alien.net>
In-Reply-To: <CAMy0BGRMYwwKNA3m7jW3Pz9yWvGeVULBKeJKfb50n3Cge8gHGQ@mail.gmail.com>
References:  <CAMy0BGRMYwwKNA3m7jW3Pz9yWvGeVULBKeJKfb50n3Cge8gHGQ@mail.gmail.com>

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

--opJtzjQTFsWo+cga
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Jan 16, 2020 at 10:17:26AM +0200, Rares Aioanei wrote:
> While compiling world with extra warnings I noticed compiler messages
> about GNU extensions being used in the code, for example the use of typeof() or
> warnings like this : "/usr/src/lib/libpmc/pmu-events/json.h:22:35:
> warning: token pasting of ',' and __VA_ARGS__ is a GNU extension
> [-Wgnu-zero-variadic-macro-arguments]". Question is : is there an
> interest in doing a "clean-up" of such constructs in the code?

To the extent that the standard provides a useful mechanism (as, IIRC,
it does here), I think this is a good idea.

Right now we're probably confined to mechanisms supported in C99, but
once we've finished kicking gcc 4.2.1 out later this year, we'll be able
to use C11 features.

-- Brooks

--opJtzjQTFsWo+cga
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJeICqWAAoJEKzQXbSebgfA8Q0H/jzWaIUmmUC+sroK5KXVnkW3
nBSvhFzRltdZEd84JYcz5ZZBJiyY0RcNwIRosptBr5XBqi5lGCzgYIcfJU815IWR
EBLbjsvJMQebctDyLTDcISK0FXDZPg6F3A7wXFdR11uNWX6c99ffyAQH30irtEO0
wL9f1mGVIszXP6lEvxXrRhj4GR1RVTnBnKL5Wbc5s/8h8WqeckaTUgcU/GB43KsN
L2iRnvbe1NRYeIzbKhnNuTr1dFW4SzS/mg1UE9AsbJp6ucK17RapUbmSj6PBz5U7
83TQKeIeW9ttN/9M1qnzYeBcsMWmX6DINyPzMFcwTduH8zxY6Wp2kqNzK8voMMw=
=3hBs
-----END PGP SIGNATURE-----

--opJtzjQTFsWo+cga--



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