Article View: gnu.misc.discuss
Article #72082Re: GNU Lint?
From: Ajay Shah
Date: Fri, 03 Apr 1992 21:42
Date: Fri, 03 Apr 1992 21:42
15 lines
1196 bytes
1196 bytes
arnold@cc.gatech.edu (Arnold Robbins) writes:
>Alas, this is not quite true. GCC does most of what lint does. At least one
>exception is cross-file checking. GCC won't catch a function declared
>one way in one file and defined another way in another file.
It's not hard to avoid that. Ask gcc to warn about any function which
defaults to int (he can do that), and always include the header file
containing the prototype of foo() at the top of the file containing
foo().
-ans.
--
Ajay Shah, (213)749-8133, ajayshah@usc.edu
Technical Details
Message-ID:
<ktpka1INNdl8@alhena.usc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!newsReferences:
<4=kjtlc@dixie.com> <NELSON.92Apr2210851@cheetah.clarkson.edu> <1992Apr3.182448.1894@cc.gatech.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,1115d30c45166f3c X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1992-04-03 13:42:25 PST Path: arc1-ca.pugleaf.net!sparky!uunet!usc!news From: ajayshah@alhena.usc.edu (Ajay Shah) Newsgroups: gnu.misc.discuss Subject: Re: GNU Lint? Date: 3 Apr 1992 13:42:25 -0800 Organization: University of Southern California, Los Angeles, CA Lines: 15 Sender: ajayshah@alhena.usc.edu (Ajay Shah) Message-ID: <ktpka1INNdl8@alhena.usc.edu> References: <4=kjtlc@dixie.com> <NELSON.92Apr2210851@cheetah.clarkson.edu> <1992Apr3.182448.1894@cc.gatech.edu> NNTP-Posting-Host: alhena.usc.edu