[comp.lang.c] ANSI C & lint - why & how

dbm@deltahp.nasa.gov (Brad Mears) (04/15/91)

I am writing (hopefully) ANSI compliant C using GNU C on a Sparc.  Will lint
do anything for me that "gcc -ansi -pedantic -Wall" will not?  If it will, how
do I use it?  The standard system lint complains mightily, even when I use 
the ansi library (-lansic).

The code in question is an X11R4 application.  Will I need to tell lint anything
about the X libraries?  

I will appreciate any opinions and/or facts you have to offer.
-- 
Brad Mears
dbm@deltahp.jsc.nasa.gov

----------------------------------------------------------------------------
Opinions are expressly forbidden.  | Definition of impiety :
I speak for myself and no other.   |"Noun, your irreverence toward my diety."
                                   |                    - Ambrose Bierce
----------------------------------------------------------------------------

mcdaniel@adi.com (Tim McDaniel) (04/16/91)

I will insert my usual plug for Gimpel Software's FlexeLint.  It can
support ANSI C and many old C dialects, and you can turn on or off any
of the 300-odd messages on a message-by-message basis, or only for
certain identifiers, and can turn them on or off via in-line comments.
It does a lot more checking than GCC can, such as inter-file
consistency checks.  It does a lot more checking than GCC does.

Call +1 215 584 4261 (in Collegeville, Pennsylvania).  I have no
financial or other stake in their success, except for being a
satisfied customer hoping for more releases.  8-)

--
   "Of course he has a knife; he always has a knife.  We all have knives.
   It's 1183 and we're barbarians."
Tim McDaniel                 Applied Dynamics Int'l.; Ann Arbor, Michigan, USA
Internet: mcdaniel@adi.com                UUCP: {uunet,sharkey}!amara!mcdaniel