lint fails to be my friend
Mark Harrison
harrison at necssd.NEC.COM
Sun Apr 7 14:59:50 AEST 1991
In article <1059 at eplunix.UUCP>, das at eplunix.UUCP (David Steffens) writes:
> When beginning maintenance activities on code that someone else has written,
> the first thing I do is to run lint on the code to see what pops out.
> This time, lint failed to find something that I think it should have.
Gimpel's Flexelint catches it. I *LIKE* flexelint.
} FlexeLint (U32) Ver. 4.00h, Copyright Gimpel Software 1985-1990
} foo.c 7 Warning 530: foo (line 3) not initialized
} foo.c 9 Warning 530: bar (line 4) not initialized
} foo.c 11 Warning 530: blap (line 4) not initialized
} foo.c 13 Warning 530: flap (line 4) not initialized
} foo.c 15 Warning 530: baz (line 5) not initialized
} foo.c 18 Warning 533: Return mode of main inconsistent with line 1
PS, you forgot to return a value from main(). :-) :-) :-)
--
Mark Harrison harrison at ssd.dl.nec.com
(214)518-5050 {necntc, cs.utexas.edu}!necssd!harrison
standard disclaimers apply...
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list