Article View: gnu.misc.discuss
Article #72083Re: GNU Lint?
From: Ian Lance Taylor
Date: Sat, 04 Apr 1992 00:11
Date: Sat, 04 Apr 1992 00:11
19 lines
1468 bytes
1468 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. But with -Wmissing-prototypes (an option I am going to claim I convinced RMS to put in after it was suggested by another person here) you can catch any function which doesn't have a prototype. This reduces the problem to making sure you create a prototype for every function you use, and not putting a prototype in more than one header file. I kind of hope -Wignored-returns gets in, too. -- Ian Taylor ian@airs.com uunet!airs!ian First person to identify this quote wins a free e-mail message: ``Do you make a grievance of weighing so many pounds only, instead of three hundred? Then why fret about living so many years only, instead of more?''
Technical Details
Message-ID:
<3877@airs.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!airs!ianReferences:
<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 16:11:44 PST Path: arc1-ca.pugleaf.net!sparky!uunet!airs!ian From: ian@airs.com (Ian Lance Taylor) Newsgroups: gnu.misc.discuss Subject: Re: GNU Lint? Message-ID: <3877@airs.com> Date: 4 Apr 92 00:11:44 GMT References: <4=kjtlc@dixie.com> <NELSON.92Apr2210851@cheetah.clarkson.edu> <1992Apr3.182448.1894@cc.gatech.edu> Sender: news@airs.com Lines: 19