From owner-freebsd-bugs Mon Aug 13 17:20: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 063A037B40E for ; Mon, 13 Aug 2001 17:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7E0K1b14102; Mon, 13 Aug 2001 17:20:01 -0700 (PDT) (envelope-from gnats) Date: Mon, 13 Aug 2001 17:20:01 -0700 (PDT) Message-Id: <200108140020.f7E0K1b14102@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Walter Campbell Subject: Re: bin/29675: lint fails on stdio.h Reply-To: Walter Campbell Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/29675; it has been noted by GNATS. From: Walter Campbell To: Bruce Evans Cc: 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