Path: utzoo!attcan!uunet!husc6!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Strange lint mumblings Message-ID: <9231@smoke.BRL.MIL> Date: 27 Dec 88 04:59:48 GMT References: <416@marob.MASA.COM> <11467@dartvax.Dartmouth.EDU> <179@amsdsg.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <179@amsdsg.UUCP> jeff@amsdsg.UUCP (Jeff Barr) writes: >How about: > void main () > { > ... Don't do this! Declare your types properly! Whatever is calling main() is expecting it to have a certain "shape" (that of a function with two arguments and returning an int); ANSI C requires that the compiler be able to compensate for the arguments being omitted, but not for the return type being garbled.