Re: proposal: remove traditional C support from lint

nia <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain,gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
On Thu, Mar 18, 2021 at 09:01:47AM +0100, Roland Illig wrote:
> Another thing is to check for GNU-specific C features such as
> __FUNCTION__ (which is easy to avoid in C99), ({...}), array
> initialization with [a...b], and so on.  I don't think even GCC can
> reliably detect these.

Doesn't lint currently fail to check C on NetBSD unless you enable
GNU extensions (-g) and "C9X mode" (-S)? I found it would always error
on the system headers, which is really confusing default behaviour,
especially on a BSD system where the system is supposed to be developed
as a single unit.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.