Clean up GNU-isms in base?

Brooks Davis brooks at freebsd.org
Thu Jan 16 09:19:21 UTC 2020


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20200116/d401d020/attachment.sig>


More information about the freebsd-hackers mailing list