Date: Thu, 16 Jan 2020 11:21:12 +0200 From: Rares Aioanei <bsdlisten@gmail.com> To: Brooks Davis <brooks@freebsd.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Clean up GNU-isms in base? Message-ID: <CAMy0BGTbvjdLRnGjO5UM-eRXGVXvyotO574M2oxiASrT5aT9%2Bw@mail.gmail.com> In-Reply-To: <20200116091919.GA21259@spindle.one-eyed-alien.net> References: <CAMy0BGRMYwwKNA3m7jW3Pz9yWvGeVULBKeJKfb50n3Cge8gHGQ@mail.gmail.com> <20200116091919.GA21259@spindle.one-eyed-alien.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Alright, thanks. I'll start looking into it, time provided, and update the list accordingly. On Thu, Jan 16, 2020 at 11:19 AM Brooks Davis <brooks@freebsd.org> wrote: > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMy0BGTbvjdLRnGjO5UM-eRXGVXvyotO574M2oxiASrT5aT9%2Bw>