Path: utzoo!attcan!uunet!amsdsg!jeff From: jeff@amsdsg.UUCP (Jeff Barr) Newsgroups: comp.lang.c Subject: Re: Strange lint mumblings Summary: Shutting lint up about main Message-ID: <179@amsdsg.UUCP> Date: 21 Dec 88 16:44:33 GMT References: <416@marob.MASA.COM> <11467@dartvax.Dartmouth.EDU> Organization: AMS Departmental Systems Group, Arlington, VA Lines: 28 In article <11467@dartvax.Dartmouth.EDU>, earleh@eleazar.dartmouth.edu (Earle R. Horton) writes: > In article <416@marob.MASA.COM> daveh@marob.masa.com (Dave Hammond) writes: > >Can anyone explain why the statement: > > > > exit(0); /* followed immediately by main's closing brace */ > > > >causes lint to complain: > > > >ma-main.c > >============== > >(137) warning: main() returns random value to invocation environment > How about: void main () { ... exit (0); } Jeff -- /-------------------------------------------------------\ / Jeff Barr AMS-DSG uunet!amsdsg!jeff 800-832-8668 \ \ American Express: "Don't leave $HOME without it". / \-------------------------------------------------------/