Lint woes

Mark Harrison harrison at csl.dl.nec.com
Sat May 25 00:49:41 AEST 1991


In article <1991May21.033422.21445 at kfw.COM> dan at kfw.com (Dan Mick) writes:

>Is it just Sun's lint that won't detect nested comments?
>
>Are all lints this stupid (that is, do they all just accept output from cpp
>without checking the original source)?

Try Gimpel's flexelint/PC lint:

$ cat nested.c
main()
{
/* foo * /
/* bar */
}

$ flint -e533 nested.c
FlexeLint (U32) Ver. 4.00h, Copyright Gimpel Software 1985-1990

--- Object:   /usr/local/lib/lc.lob
--- Object:   /usr/local/lib/lm.lob
--- Module:   nested.c
nested.c  4  Warning 602: Comment within comment
$

The flag -e533 turns off:
nested.c  5  Warning 533: Return mode of main inconsistent with line 1
-- 
Mark Harrison           | Note: harrison at ssd.dl.nec.com and
harrison at csl.dl.nec.com | necssd!harrison are not operating at
(214)518-5050           | present.  Please forward mail through the
                        | above address.  Sorry for the inconvenience.



More information about the Comp.unix.programmer mailing list