Strange lint mumblings

T. William Wells bill at twwells.uucp
Thu Dec 29 16:16:07 AEST 1988


In article <599 at micropen> dave at micropen (David F. Carlson) writes:
: I have solved this "problem" by not using the function exit() to return
: to the calling environment main() status.  Rather, use return at the end
: of main().  Lint seems to like return from functions.  It never has been
: able to deal with exit() properly, ("statement not reached", etc.) so why
: try?

Try putting /*NOTREACHED*/ after the exit(). That shuts up every lint
I know about. It's in the manual.

---
Bill
{uunet|novavax}!proxftl!twwells!bill



More information about the Comp.lang.c mailing list