strange behaviour of lint?
Doug Gwyn
gwyn at smoke.BRL.MIL
Mon May 8 07:19:16 AEST 1989
In article <1325 at rivm05.UUCP> ccea3 at rivm.UUCP (Adri Verhoef) writes:
>My question: Is lint wrong, or am I misusing "(void)"?
You're not declaring the exit() function, so the default rule applies,
namely it is assumed to be a function of indeterminate arguments
returing int. Since that's not correct (exit() is void-valued),
"lint" properly complains about the inconsistency.
More information about the Comp.lang.c
mailing list