Date: Mon, 13 Aug 2001 17:20:01 -0700 (PDT) From: Walter Campbell <wcampbel@botbay.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/29675: lint fails on stdio.h Message-ID: <200108140020.f7E0K1b14102@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/29675; it has been noted by GNATS. From: Walter Campbell <wcampbel@botbay.net> To: Bruce Evans <bde@zeta.org.au> Cc: <FreeBSD-gnats-submit@FreeBSD.ORG> Subject: Re: bin/29675: lint fails on stdio.h Date: Mon, 13 Aug 2001 20:15:32 -0400 (EDT) On Tue, 14 Aug 2001, Bruce Evans wrote: > On Mon, 13 Aug 2001, Walter Campbell wrote: > > > >Description: > > > > lint(1) will fail on C files that include stdio.h > > > > >How-To-Repeat: > > > > wcampbel@botbay (alis-2.2beta2.patched): lint -aacgprxhH *.c > > alis.c: > > stdio.h:299: syntax error > > ... > > This happens with make lint on ircd-hybrid 6.2rc1 > > ... > > What version of lint is in that? I think thre is no problem here with > FreeBSD lint, but stdio.h is certainly broken for most foreign versions > of lint, compilers other than gcc, and old version of gcc. The > hard-coded __attribute__(()) in it needs to be ifdef'ed, not quite as > in the following patch. I'm using the stock FreeBSD lint. It does give me the syntax error, which causes all my lint's to fail. In response to an earlier reply, lint does things that gcc's -W flags do not, such as identifying unused structures, functions, and helping identify some pieces of code that can be troublesome. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108140020.f7E0K1b14102>